sajson
High-Performance JSON Parser
|
Allocation policy that uses dynamically-growing buffers for both the parse stack and the AST. More...
#include <sajson.h>
Public Member Functions | |
dynamic_allocation (size_t initial_ast_capacity=0, size_t initial_stack_capacity=0) | |
Creates a dynamic_allocation policy with the given initial AST and stack buffer sizes. More... | |
Allocation policy that uses dynamically-growing buffers for both the parse stack and the AST.
This allocation policy minimizes peak memory usage at the cost of some allocation and copying churn.
|
inline |
Creates a dynamic_allocation policy with the given initial AST and stack buffer sizes.