mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-19 01:55:48 +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++
90.3%
C
8.1%
CMake
0.6%
Shell
0.2%
Java
0.2%
Other
0.5%