-
Notifications
You must be signed in to change notification settings - Fork 4
Potential perf improvements #26
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
Comments
Yes, that's a big issue. I reduced time from |
I measured, there is no performance between using |
pub static TID: RefCell<usize> = RefCell::new(0);
and the like withpub static TID: Cell<usize> = Cell::new(0);
thread::current().id().as_u64()
once that is stableMEM_SIZE
array more to avoid false sharing. Threads get sequential IDs, so may hammer the same cache line during allocationTOTAL_MEMORY_USAGE
as it's the sum of per-thread usages.rand::thread_rng().gen_range(0, 100)
feels like something optimizable: thread_rng is crypto secure I thing (or at least stroger than xorshift).The text was updated successfully, but these errors were encountered: