-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplifies how evaluated properties and array items are tracked #790
Conversation
…der to improve performance. Resolves #721
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## master #790 +/- ##
============================================
- Coverage 75.66% 75.18% -0.49%
- Complexity 1212 1242 +30
============================================
Files 122 122
Lines 4118 4163 +45
Branches 792 801 +9
============================================
+ Hits 3116 3130 +14
- Misses 679 706 +27
- Partials 323 327 +4
|
I tested with the json-schema-validdator-perftest between issue721 and master. The performance is almost identical on my computer. Do I need to turn on a config flag? Thanks. |
@stevehu No, there is no config flag yet. In the comment I left on #721, I attempted to explain that I am not seeing the issue. Since then, I managed to find a somewhat complicated schema and generated a 75MB JSON file from it. I ran it in json-schema-validator-perftest where is averaged 766 ms and 1000ms for worst time. The schema does not use unevaluatedProperties or unevaluatedItems so I'm adding those to see the effect. |
unevaluatedProperties adds 7% overhead using this branch. |
# Conflicts: # src/test/java/com/networknt/schema/suite/TestCase.java # src/test/java/com/networknt/schema/suite/TestSpec.java
…atedProperties analysis
# Conflicts: # src/test/java/com/networknt/schema/AbstractJsonSchemaTestSuite.java
@stevehu Please merge this change so I do not have to keep resolving conflicts. |
Should improve performance.
Resolves #721