Two new ways to read a file quickly
Two new ways to read a file quickly
Posted Mar 8, 2020 7:55 UTC (Sun) by mm7323 (subscriber, #87386)In reply to: Two new ways to read a file quickly by ploxiln
Parent article: Two new ways to read a file quickly
But is anyone actually complaining or concerned about poor performance of these programs?
Posted Mar 8, 2020 11:29 UTC (Sun)
by mpr22 (subscriber, #60784)
[Link] (5 responses)
And I'm sure plenty of people care about grep running slower than it needs to.
Posted Mar 8, 2020 17:00 UTC (Sun)
by mm7323 (subscriber, #87386)
[Link] (4 responses)
grep on large files should be IO bound, and grep on a small file is surely overshadowed by process startup time rather than an extra system call to get file contents into a buffer.
I've also never noticed top negatively impacting system performance; even the busybox version on little embedded systems has never caused me a problem or disappointed. Generically allowing system-call batching is a good idea, but personally I'm less convinced by esoteric system-calls for specific and limited use cases.
Posted Mar 8, 2020 18:06 UTC (Sun)
by andresfreund (subscriber, #69562)
[Link] (1 responses)
Posted Mar 8, 2020 23:42 UTC (Sun)
by himi (subscriber, #340)
[Link]
And the general principle of having measurement of the system cause as little impact on the properties being measured definitely holds.
Posted Mar 9, 2020 11:05 UTC (Mon)
by Sesse (subscriber, #53779)
[Link]
Posted Mar 9, 2020 22:00 UTC (Mon)
by roc (subscriber, #30627)
[Link]
Posted Mar 8, 2020 20:02 UTC (Sun)
by excors (subscriber, #95769)
[Link]
There's no point optimising the kernel for grep itself, because grep could be improved by maybe two orders of magnitude with purely application changes; but it might be worth considering whether kernel changes could improve the performance of ripgrep which has already taken most of the low-hanging fruit.
Posted Mar 8, 2020 23:51 UTC (Sun)
by himi (subscriber, #340)
[Link]
Posted Mar 17, 2020 16:38 UTC (Tue)
by mebrown (subscriber, #7960)
[Link]
In practice I observe that current implementations of top use a noticeable percentage of CPU, which can throw off my observations.
Two new ways to read a file quickly
Two new ways to read a file quickly
And I'm sure plenty of people care about grep running slower than it needs to.
Two new ways to read a file quickly
Two new ways to read a file quickly
Two new ways to read a file quickly
Two new ways to read a file quickly
Two new ways to read a file quickly
Two new ways to read a file quickly
Two new ways to read a file quickly