diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 15:59:31 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:16 -0300 |
| commit | 1e5904677535d219e9bba93964e531c786870539 (patch) | |
| tree | 54018fc4e106be91085dc1f7e93dc69cb7bf41ed /src/ninep | |
| parent | fa07370ea6cbd4be031bab2c14b24203ae329365 (diff) | |
| download | pardes-1e5904677535d219e9bba93964e531c786870539.tar.gz pardes-1e5904677535d219e9bba93964e531c786870539.zip | |
An Edit x gives each of its searches the step budget, and a search that spends it says it took too much time
The budget was the compiled pattern's, spent over every search an x made: Edit ,x/x+/c/z/ over 100k lines ran out and failed, blamed on backtracking. Each search now starts with the whole budget, and one that spends it says regular expression search took too much time, gave up. (Not "too long": 9ns reads those words as ENAMETOOLONG.)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/ninep')
| -rw-r--r-- | src/ninep/addr.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ninep/addr.zig b/src/ninep/addr.zig index c052a665..005ad593 100644 --- a/src/ninep/addr.zig +++ b/src/ninep/addr.zig @@ -17,7 +17,7 @@ pub const e_col_zero = "address out of range: a column counts from 1"; pub const e_regexp = "bad regular expression"; /// Not "took too long": 9ns reads errors by their words, and that would be /// ENAMETOOLONG. -pub const e_slow = "regular expression search gave up, backtracking past its step budget"; +pub const e_slow = "regular expression search took too much time, gave up"; pub const e_syntax = "bad address syntax"; pub const e_order = "addresses out of order"; |
