Files
ladybird/Userland/Libraries/LibJS/Runtime
Andreas Kling 257ebea364 LibJS: Store RegExp flags as a bitmask
This avoids having to do O(n) contains() in the various flag accessors.

Yields a ~20% speed-up on the following microbenchmark:

    const re = /foo/dgimsvy;
    for (let i = 0; i < 1_000_000; ++i)
        re.flags;
2024-10-26 15:42:57 +02:00
..
2023-11-30 09:51:46 -05:00
2024-10-23 19:47:18 -04:00
2024-10-14 20:47:35 +02:00
2024-10-24 19:00:00 -04:00