You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
simdjson_warn_unusedinlineerror_codedom_parser_implementation::allocate(size_tcapacity, size_tmax_depth) noexcept {
if (this->max_depth() !=max_depth) {
error_codeerr=set_max_depth(max_depth);
if (err) { returnerr; }
}
if (_capacity!=capacity) {
error_codeerr=set_capacity(capacity);
if (err) { returnerr; }
}
returnSUCCESS;
}
Most of the memory can be freed without this as a workaround by calling simdjson_decode('""') as a side effect of how the C library is implemented - it will always change the depth/capacity
This may be useful if applications parse megabytes of json on startup, but don't use simdjson for large requests later on.
This would free the buffers used by the underlying C simdjson library
The text was updated successfully, but these errors were encountered: