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
..
2024-10-17 22:06:16 +02:00
2024-04-05 20:01:37 -04:00
2024-10-25 09:15:28 +02:00
2024-10-26 15:42:57 +02:00
2024-10-25 07:24:22 -04:00
2024-10-04 13:19:50 +02:00
2024-10-04 13:19:50 +02:00
2024-09-03 17:43:03 +02:00
2024-09-26 10:14:09 +02:00
2024-08-22 09:08:50 +01:00
2024-06-16 07:19:56 -04:00
2024-06-16 07:19:56 -04:00
2024-10-26 15:42:57 +02:00
2024-09-02 15:22:51 +02:00
2024-03-24 13:28:24 +01:00
2024-10-14 20:47:35 +02:00
2024-10-04 13:19:50 +02:00
2024-10-04 13:19:50 +02:00
2024-10-04 13:19:50 +02:00
2024-10-04 13:19:50 +02:00
2024-04-05 20:01:37 -04:00
2024-04-05 20:01:37 -04:00
2024-10-04 13:19:50 +02:00
2024-10-11 09:59:39 +01:00
2024-10-04 13:19:50 +02:00
2024-10-04 13:19:50 +02:00
2024-10-04 13:19:50 +02:00
2024-10-04 13:19:50 +02:00
2024-10-04 13:19:50 +02:00
2024-10-04 13:19:50 +02:00
2024-10-04 13:19:50 +02:00
2024-10-04 13:19:50 +02:00
2024-10-04 13:19:50 +02:00
2024-05-31 16:31:33 +02:00
2024-09-02 15:22:51 +02:00