Any performance optimizations that don't introduce `unsafe` are welcome!
Any performance optimizations that don't introduce
unsafeare welcome!