ReviewOS

also looking at this

zig-utils/zig-regex

fix(vm): make findAll linear by stopping matchAt when no threads remain

#8
Merged DaliVana wants to merge fix/findall-quadratic into main
3 files +102 -0
build.zigmodified+3-0
Changes to build.zig
@@ -330,6 +330,9 @@ pub fn build(b: *std.Build) void {
330330 },
331331 }),
332332 });
333 // The findAll-quadratic regression test uses libc's monotonic clock for a
334 // time bound (Zig 0.16 std.time has no Timer/nanoTimestamp).
335 regression_tests.root_module.link_libc = true;
333336 const run_regression_tests = b.addRunArtifact(regression_tests);
334337 test_step.dependOn(&run_regression_tests.step);
335338