Skip to content

Conversation

@svbergmann
Copy link

Problem

JSON rendering repeatedly calls getFirst(...) for each field, which rebuilds child-node data each time and adds overhead on large objects.

Change

Cache the first child per key once per object render and reuse it while shading JSON fields.

Impact

Reduces repeated traversal/allocation during JSON rendering without changing output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant