« * K @rreverser.com

Ingvar Stepanyan @rreverser.com

2026-11-26 15:33 UTC

Apparently Rust creates a single shared instance of Arc for Arc<[T]> and Arc<str> slices, and hands its reference-clones out in Arc::default(). Sounds like a good idea in principle - no allocations! - but VTune flagged it as a major atomic contention point in a hot path that created empty objects.

A reply in a thread.

3 likes, 0 reposts, 1 replies

3 Next post4 More from @rreverser.comBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup