Skip to content

Cache the results of RefResolver::resolve() #290

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Aug 11, 2016

Conversation

thewilkybarkid
Copy link
Contributor

I ran into high memory usage with RefResolver::resolve() when validating many documents against complex schemas. This can be improved by caching the results across all calls.

@bighappyface
Copy link
Collaborator

@thewilkybarkid would you mind reviewing the tests for this package to see if there is a place to test these changes?

@thewilkybarkid
Copy link
Contributor Author

@bighappyface There's now a test, without the changes that test runs out of memory (for me).

@bighappyface
Copy link
Collaborator

+1

@bighappyface bighappyface merged commit ef13b9b into jsonrainbow:master Aug 11, 2016
@thewilkybarkid thewilkybarkid deleted the cache-paths branch August 11, 2016 12:53
@thewilkybarkid thewilkybarkid mentioned this pull request Aug 24, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants