An out of memory bug report led us to profile the memory usage of our Rust extension. We used valgrind and heaptrack to understand the problem, and then switched from json to msgpack to reduce memory usage by 4x.