mirror of
https://github.com/Xahau/xahaud.git
synced 2026-06-05 09:46:38 +00:00
nb-stuff
Json::Value memory allocation for strings:
The memory allocation patterns of Json::Value benefit greatly
from the slabbed allocator. This commit adds a global slabbed
allocator dedicated to `Json::Value`.
Real-world data indicates that only 2% of allocation requests
are over 72 bytes long. The remaining 98% of allocations fall
into the following 3 buckets, calculated across 9,500,000,000
allocation calls:
[ 1, 32]: 17% of all allocations
[33, 48]: 27% of all allocations
[49, 72]: 57% of all allocations
This commit should result in improved performance for servers
that have JSON-heavy workloads, typically those servicing RPC
and WebSocket workloads, and less memory fragmentation.
The Xahau Ledger
TODO: Doco
Description
Languages
C++
98.4%
C
0.9%
CMake
0.4%
Shell
0.2%