Skip to content

Conversation

nc6
Copy link
Collaborator

@nc6 nc6 commented Jun 30, 2025

Effectively, this change means that rather than expanding the possible rules that might match an array/map into a list which we search through, we expand them into a tree where the internal nodes provide filtering of the possible rule matches. In the example of #79, we would only test once for each key being present and prune branches where a key isn't present.

@nc6 nc6 linked an issue Jun 30, 2025 that may be closed by this pull request
@nc6 nc6 marked this pull request as draft June 30, 2025 15:43
nc6 added 3 commits July 2, 2025 12:59
@nc6 nc6 force-pushed the nc/tree-validator branch from 69801dc to 2c785ee Compare July 2, 2025 10:59
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.

Optimize map/list expansions in validator
2 participants