ExodusMovement / schemasafe

A reasonably safe JSON Schema validator with draft-04/06/07/2019-09/2020-12 support.
https://npmjs.com/@exodus/schemasafe
MIT License
156 stars 12 forks source link

Optimize includeErrors=true more via buildName() inlining #115

Closed ChALkeR closed 4 years ago

ChALkeR commented 4 years ago

Gives about +10% with includeErrors option. Does not change the produced code if includeErrors is disabled.

Depends on #113.

codecov-commenter commented 4 years ago

Codecov Report

Merging #115 into master will increase coverage by 0.00%. The diff coverage is 100.00%.

Impacted Files Coverage Δ
src/index.js 98.86% <100.00%> (+0.01%) :arrow_up:
src/scope-functions.js 100.00% <100.00%> (ø)