I’ve been working on some performance-critical Swift code, and you can get some amazing speedups using spans, BitwiseCopyable types, explicit non-copyable structs, and atomics from the Synchronization module.
That’s over a 400x speedup compared with Swift collection types and traditional kernel-based locking.