-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpuid: read /proc/cpuinfo incrementally
On machines with many CPUs, reading all of /proc/cpuinfo spends a surprising amount of time generating information for each CPU; reduce this time by reading incrementally until we find the CPU frequency. On such machines, this saves 3-4ms on sentry startup. PiperOrigin-RevId: 688609950
- Loading branch information
1 parent
4362b11
commit 453f16e
Showing
1 changed file
with
19 additions
and
13 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