Repository navigation
Conversation
Merging this PR will degrade performance by 3.71%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ | CPU Simulation | uniq_case_insensitive[10000] |
2.9 ms | 3 ms | -4.09% |
| ❌ | CPU Simulation | uniq_with_count[10000] |
3.6 ms | 3.7 ms | -3.32% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing NdekoCode:read-errors-name-the-file (735bc24) with main (ae34722)2
Footnotes
-
400 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(198c615) during the generation of this report, so ae34722 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩
A read error said "read failed: Is a directory", "read error: Is a directory" or "failed to read line: Is a directory", with no way to tell which of several inputs it was about. GNU names the input, "-" for standard input. sort wraps each input in a reader that names itself in its errors, uniq and fold pass the name down to where the read happens.
The name and the error are two parameters of sort-read-failed now, so translators decide their order instead of the reader formatting both into one string. The temporary files of a merge name themselves too, as they do in GNU sort.
Both go through locale_aware_shell_escape, as the open error has since 8edf725.
Reading a directory there fails with EBADF, not EISDIR.
0a9dcbd to
1252d86
Compare
|
@sylvestre rebased on main, the merge inputs name their TmpPath. |
Reading a directory there fails with EBADF, not EISDIR, like for fold.
A read error said
read failed: Is a directory(sort),read error: Is a directory(uniq) orfailed to read line: Is a directory(fold), with no way to tell which of several inputs it was about. GNU 9.12 names the input,-for standard input:sort: read failed: d: Is a directory,uniq: error reading 'd': Is a directory,fold: d: Is a directory.sort wraps each input in a reader that names itself in its errors, which keeps the chunk reader as it is; uniq and fold pass the name down to where the read happens. Checked against GNU 9.12 with a directory as an operand, on standard input, and among other inputs; the three suites pass. Part of what
misc/read-errors.shfrom #14705 checks.Closes #15190.