-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Much improved model performance with arrayBufferPool.
it turns out that browsers have relatively slow fill methods, so much that in some cases that can dominate the run time. this commit introduces the lazy initialization combined with the "marking" mechanism to ensure that the same array can be used over and over without the miscompression. now optimizer is from 20--30% to 3 times faster than before. <benchmark> samples used: - default README inputs for the online demo (5.7 KB text) - Edge Not Found (32.7 KB JS) Firefox 92.0b4: - README: 90s -> 30s - Edge Not Found: 240s -> 130s Chrome 92.0: - README: 22s -> 16s - Edge Not Found: 85s -> 70s </benchmark>
- Loading branch information
1 parent
3bf7845
commit 8af149c
Showing
2 changed files
with
56 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
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