-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(code-gen): init js validator objects with known keys
We don't accept dynamic keys at all, so there is no reason to keep `Object.create(null)`. By also pre-initializing the object with all known keys, we keep the shape of the object always the same. This gives a 10-30% improvement when validating structures
- Loading branch information
Showing
6 changed files
with
1,145 additions
and
218 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.