Repository navigation
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