-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve addChild and path performance (#1891)
Improve the performance of the `constructs` library by removing several branches in the library's hot paths and switching to some more performant operations. On my laptop, the benchmark I used (shared in a gist [here](https://gist.github.com/Chriscbr/fa69e5f7f35d5aa4dc312dd7025952b1)) takes about 5.0-5.3 seconds with the old version of constructs, and about 1.1-1.2 seconds with the new version of constructs. Misc: - Removed an unused file in the `test` folder. - Added some files to `npmignore` to reduce the package's npm footprint.
- Loading branch information
Showing
4 changed files
with
10 additions
and
81 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.