Repository navigation
ptx: accept invalid UTF-8 input and trailing backslash regexps - #14032
Conversation
37fe2f6 to
5a00998
Compare
5a00998 to
2d2cdf2
Compare
Merging this PR will improve performance by 4.13%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ⚡ | Simulation | du_summarize_balanced_tree[(5, 4, 10)] |
17 ms | 16.4 ms | +4.13% |
Tip
Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.
Comparing sylvestre:fix-gnu-ptx-overrun (8217bf1) with main (4b79fb9)2
Footnotes
-
50 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
-
No successful run was found on
main(f7a27d5) during the generation of this report, so 4b79fb9 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩
2d2cdf2 to
8f085c8
Compare
|
GNU testsuite comparison: |
ptx aborted with "stream did not contain valid UTF-8" on input that is not valid UTF-8, while GNU ptx operates on bytes and processes it fine. Input is now read as bytes and decoded lossily. Additionally, a regexp ending in a lone backslash (e.g. -S 'foo\') was rejected by the regex crate as an incomplete escape sequence, whereas GNU treats it as a literal backslash. Such a trailing backslash is now doubled before compiling the pattern, for both -S and -W. Should make test tests/ptx/ptx-overrun.sh pass uutils#13841
8f085c8 to
8217bf1
Compare
ptx aborted with "stream did not contain valid UTF-8" on input that is not valid UTF-8, while GNU ptx operates on bytes and processes it fine. Input is now read as bytes and decoded lossily.
Should make test tests/ptx/ptx-overrun.sh pass
#13841