-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Inadequately large Timeout
's size
#5348
Comments
The cache line alignment of |
I've done some digging after noticing similar issues with
If you trim away the padding, here's all that's required:
I'm skeptical cache padding would yield any benefit there, to be quite honest. If anything, I'd expect it to actually perform slower in this case than just removing the cache alignment altogether, just due to the fact it requires not one, but 5 cache lines on x86-64 (and AArch64 and 64-bit PowerPC). |
I would be happy to remove the cache padding. |
Version
1.23.1
Description
I tried the following code:
Debug and release builds print the same numbers.
It can affect performance even if
timeout()
is used rarely (e.g. conditionally). For instance, it degraded the performance (~18%) of my DB client until I boxedSleep
.The text was updated successfully, but these errors were encountered: