mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibRegex: Use a match table for character classes
Generate a sorted, compressed series of ranges in a match table for character classes, and use a binary search to find the matches. This is about a 3-4x speedup for character class match performance. :^)
This commit is contained in:
parent
478b36c37b
commit
8f722302d9
Notes:
sideshowbarker
2024-07-18 03:08:03 +09:00
Author: https://github.com/alimpfard
Commit: 8f722302d9
Pull-request: https://github.com/SerenityOS/serenity/pull/10336
6 changed files with 232 additions and 35 deletions
|
@ -9,6 +9,8 @@
|
|||
#include <AK/Types.h>
|
||||
|
||||
namespace regex {
|
||||
struct CompareTypeAndValuePair;
|
||||
|
||||
enum class Error : u8;
|
||||
class Lexer;
|
||||
class PosixExtendedParser;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue