-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dlt-system: Avoid expensive getpid() syscalls
Since glibc 2.25, getpid() no longer caches the PID, instead performing a full syscall every time. This means we're performing a full syscall roundtrip for *every* *single* *log* *message* on the system. This patch caches the result of getpid() when appropriate, avoiding unnessicary syscalls. Signed-off-by: Aleix Pol Gonzalez <[email protected]>
- Loading branch information
Victoria Fischer
authored and
Aleix Pol Gonzalez
committed
Jan 8, 2025
1 parent
91deea1
commit 34d8272
Showing
2 changed files
with
9 additions
and
1 deletion.
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
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