Skip to content
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

alloc-tls: Consider removing alloc_tls_fast_with! macro #157

Open
joshlf opened this issue Feb 24, 2018 · 0 comments
Open

alloc-tls: Consider removing alloc_tls_fast_with! macro #157

joshlf opened this issue Feb 24, 2018 · 0 comments

Comments

@joshlf
Copy link
Collaborator

joshlf commented Feb 24, 2018

Microbenchmarks on my laptop now show that TLSSlot::with is just as fast (2 ns/op) as the alloc_tls_fast_with! macro. If memory serves, these microbenchmarks used to show (on this same model of laptop) that TLSSlot::with took 4 ns/op. Thus, it's worth looking into whether elfmalloc's macrobenchmarks no longer show a difference in speed between TLSSlot::with and alloc_tls_fast_with!, and if so, to consider removing the latter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant