-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: create faker schema just once (#30)
This change creates the faker schema just once and reuses it, rather than unnecessarily creating it for each generated document. On my machine, this speeds up `node --test` by about 350 milliseconds, or about 8%. I suspect the gains will be a little bigger in `@comapeo/core` where we call `generate` a lot more.
- Loading branch information
Showing
1 changed file
with
20 additions
and
3 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