Introduce MODE=fastbuild for 28% speedup

This commit is contained in:
Justine Tunney 2022-09-09 08:59:59 -07:00
parent 094ccbb4bd
commit 1729a8259c
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
14 changed files with 82 additions and 111 deletions

View file

@ -27,7 +27,10 @@
* This function does not need to issue a system call. The PID is
* tracked by a global variable which is updated at fork(). The only
* exception is when the process is vfork()'d in which case a system
* call shall be issued.
* call shall be issued. This optimization helps make functions like
* rand64() fork-safe, however it could lead to race conditions in
* programs that mix fork() with threads. In that case, apps should
* consider using `sys_getpid().ax` instead to force a system call.
*
* On Linux, and only Linux, the process id is guaranteed to be the same
* as gettid() for the main thread.