-
Notifications
You must be signed in to change notification settings - Fork 471
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
Make Local less than 2048 bytes #552
Conversation
@@ -55,7 +55,7 @@ use crate::sync::queue::Queue; | |||
|
|||
/// Maximum number of objects a bag can contain. | |||
#[cfg(not(feature = "sanitize"))] | |||
const MAX_OBJECTS: usize = 64; | |||
const MAX_OBJECTS: usize = 62; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fwiw, if make Local
to be less than or equal to 1024 bytes, MAX_OBJECTS
needs to be 30 (1016 bytes)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I didn't misunderstand @stjepang's this comment, It seems fine with less than half of what it is now, so it may be okay with this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
bors r=stjepang |
Build succeeded: |
This is just one of a few things to try related to crossbeam-rs#552. As a first step it would be interesting to see what kind of impact this has on Firefox automation builds. Some initial measurements are promising for builds with lots of cache misses, but this sort of thing is cumbersome to measure, so I'd like to try enabling this for the sccache client built in Mozilla automation to see the impact it has there.
Set
MAX_OBJECTS
to 62, and make the size ofLocal
to 2040 bytes.Closes #551