release_json_memory: Release Memory Kept Between Calls

View source: R/RcppExports.R

release_json_memoryR Documentation

Release Memory Kept Between Calls

Description

To parse faster, fparse() and fload() keep some memory between calls: a buffer holding a copy of the input (as large as the largest document parsed, and released after a call when larger than 64 MiB), and a small cache of short strings. release_json_memory() frees this memory now. It is allocated again as needed, so it is always safe to call.

Usage

release_json_memory()

Value

The number of bytes freed, invisibly.

Examples

x <- fparse('{"a": [1, 2, 3]}')
release_json_memory()


RcppSimdJson documentation built on Oct. 16, 2026, 5:06 p.m.