mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 12:06:07 +00:00
LibRegex: Replace the checkpoint backing store with a Vector
This makes repeated lookups and insertions much faster, yielding a general performance improvement of about 10% in the regex test suite.
This commit is contained in:
parent
2d6f50932b
commit
4bff4219ff
Notes:
sideshowbarker
2024-07-17 00:59:43 +09:00
Author: https://github.com/alimpfard
Commit: 4bff4219ff
Pull-request: https://github.com/SerenityOS/serenity/pull/20014
2 changed files with 8 additions and 4 deletions
|
@ -647,7 +647,7 @@ struct MatchInput {
|
|||
mutable Vector<size_t> saved_positions;
|
||||
mutable Vector<size_t> saved_code_unit_positions;
|
||||
mutable Vector<size_t> saved_forks_since_last_save;
|
||||
mutable HashMap<u64, u64> checkpoints;
|
||||
mutable Vector<u64, 64> checkpoints;
|
||||
mutable Optional<size_t> fork_to_replace;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue