Skip to content

alloc-tls: Consider removing alloc_tls_fast_with! macro #157

Open
@joshlf

Description

@joshlf

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions