mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:47:37 +00:00
LibRegex: Avoid keeping track of checkpoints across forks
Doing so would increase memory consumption by quite a bit, since many useless copies of the checkpoints hashmap would be created and later thrown away.
This commit is contained in:
parent
645e29a88b
commit
88d148b46a
2 changed files with 5 additions and 5 deletions
|
@ -513,6 +513,7 @@ struct MatchInput {
|
|||
mutable size_t fail_counter { 0 };
|
||||
mutable Vector<size_t> saved_positions;
|
||||
mutable Vector<size_t> saved_code_unit_positions;
|
||||
mutable HashMap<u64, u64> checkpoints;
|
||||
};
|
||||
|
||||
struct MatchState {
|
||||
|
@ -524,7 +525,6 @@ struct MatchState {
|
|||
Vector<Match> matches;
|
||||
Vector<Vector<Match>> capture_group_matches;
|
||||
Vector<u64> repetition_marks;
|
||||
HashMap<u64, u64> checkpoints;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue