Arenas make things so much easier in Rust. Instead of keeping track of a bunch of lifetimes, I just need to keep track of one lifetime—the arena's lifetime. It really helped with zero-copy deserialization, as I can just store the bytes in the arena and the deserialized data will have that lifetime.
1
0
0
I generally avoid lifetimes, because I had a bad experience with them when I was starting out with Rust. Usually, I tell myself that heap allocations are fine to avoid working with lifetimes. For some performance reasons, though, I had to step out of my comfort zone.
0
0
0