#arena-allocator #pointers #access #exclusive #index #mutually #convert

arena64

A concurrent arena providing mutually exclusive access over indexes

6 releases (3 breaking)

0.6.0 Feb 6, 2025
0.5.0 Feb 6, 2025
0.4.2 Jan 23, 2025
0.4.0 Dec 27, 2024
0.1.4 May 12, 2024

#1 in #mutually

Download history 135/week @ 2024-12-01 5/week @ 2024-12-08 374/week @ 2024-12-22 14/week @ 2024-12-29 1/week @ 2025-01-05 182/week @ 2025-01-19 29/week @ 2025-01-26 223/week @ 2025-02-02 53/week @ 2025-02-09 18/week @ 2025-02-16 15/week @ 2025-02-23 30/week @ 2025-03-02

65 downloads per month

MIT license

20KB
474 lines

Arena64

License Cargo Documentation

Arena64 provides alternatives to Box that use pre-allocated storage while preserving the ability to convert into/from raw pointers.

Benchmark Results

Box Bump64 Arena64
64 967.87 ns (✅ 1.00x) 234.03 ns (🚀 4.14x faster) 333.00 ns (🚀 2.91x faster)
128 1.92 us (✅ 1.00x) 444.37 ns (🚀 4.32x faster) 646.06 ns (🚀 2.97x faster)
256 3.81 us (✅ 1.00x) 848.89 ns (🚀 4.49x faster) 1.30 us (🚀 2.94x faster)
512 7.69 us (✅ 1.00x) 1.64 us (🚀 4.69x faster) 2.57 us (🚀 2.99x faster)
1024 15.23 us (✅ 1.00x) 3.24 us (🚀 4.70x faster) 5.06 us (🚀 3.01x faster)
2048 30.43 us (✅ 1.00x) 6.45 us (🚀 4.72x faster) 9.93 us (🚀 3.06x faster)

Dependencies

~110KB