ezrosent / allocators-rs

Allocators in Rust
Apache License 2.0
311 stars 28 forks source link

Add alloc-tls: custom thread-local variable implementation #85

Closed joshlf closed 7 years ago

joshlf commented 7 years ago

@ezrosent and I have verified that this change does not adversely affect performance. Unfortunately, getting to that state required the addition of the somewhat-unergonomic macro alloc_tls_fast_with - calling the with method directly significantly degraded performance. This probably reflects a missed optimization opportunity that could be reported to the rustc folks.