-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix rebuild of validator per instance & cache bug
The schema loader is asked to retrieve a validator per instance, in order to support the interface of metaschema evaluation. However, this results in a complete rebuild of the validator even when there is one schema being used for many instances (as in the `--schemafile` usage mode). Introducing an LRU cache on the validator builder results in the same validator being reused (and is sensitive to changes in settings/parameters). Additionally fix a bug in the remote ref download caching in which the key used for lookup was incorrect, rendering the cache completely ineffective. A new regression test confirms that the caching is fully effective by only observing the number of requests made by the program over "N" instancefiles, where N>=1.
- Loading branch information
Showing
3 changed files
with
72 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters