-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Want
procs find
to be fast (for things like procs find -akill xyz
).
Since that primarily needs only `psStat`, use the (more recent than `procs.nim`) interfaces for 0copy/0alloc `mslice.parseInt` in readStat. Yields 1.15-1.25X overall boost for `pf xyz`. perf shows super-majority of CPU time in the kernel even before this patch. So, it likely helped a lot more for the user-space portion. Someday could make readStatm & readStatus & others similar.
- Loading branch information
Showing
1 changed file
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters