From Jason Turner
Watch on YouTube

Summary

Jason demonstrates how Polymorphic Memory Resources (PMR) can dramatically improve JSON parsing performance through practical benchmarks. Using Boost.JSON and RapidJSON, he shows that custom allocators can achieve 2-3x faster parsing speeds compared to default allocators. He explains how the deeply nested structure of JSON (maps of arrays of strings containing other maps) makes it an ideal candidate for monotonic buffer resources and pool resources, which reduce memory allocation overhead and improve memory locality.

Resources

Tags