-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use vDSO when possible. #36358
Comments
We just call into libc, which should route through the vDSO without any manual intervention needed,
|
I don't know why, but getting current time in chrono is around 60ns, instead of what's promised for vDSO. I though that maybe two syscalls are being made (current time + current timezone?), and vDSO is not being used. I guess if libc is providing vDSO, then this issue can be closed. |
|
OH. Good to know. Thank you. |
I've discovered that Go is using vDSO on Linux to get current time, which makes it much faster. From my initial investigation, it seems Rust is now taking advantage of that yet.
Reference: https://blog.cloudflare.com/its-go-time-on-linux/
The text was updated successfully, but these errors were encountered: