Repository navigation
v0.1.1
·
23 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Patch Changes
-
45936a8: Add internal caching for improved performance:
- Cache
toJSONPointer()andtoJSONPath()results (minimal memory overhead, avoids string building and character escaping on repeated calls) - Cache tree node position lookups using single-scan approach for
firstNodePath(),lastNodePath(),afterNodePath(),nodeIndices(),nodePaths(), andparentNode()(tiny memory footprint with cumulative speedups across 6+ methods)
These optimizations maintain tiny memory usage while providing noticeable performance improvements for common operations, especially in serialization workflows and tree navigation scenarios. The single-scan node position caching computes both first and last node indices together, avoiding redundant segment array iterations.
- Cache