blinkdb-js / blinkdb

🗃️ An in-memory JS database optimized for large scale storage on the frontend.
https://blinkdb.io
MIT License
119 stars 10 forks source link

Insert many performance optimizations #22

Closed Valerionn closed 1 year ago

Valerionn commented 1 year ago

Some insertMany micro optimizations, leading to ~50% more Operations/s in my local insert-many benchmarks (but feel free to run the benchmarks on your PC as well):

Changes, sorted by performance impact (DESC):

Possible further improvements, which are breaking changes:

codecov[bot] commented 1 year ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (feature/fix-insert-many-performance@18b3f6b). Click here to learn what that means. The diff coverage is n/a.

@@                          Coverage Diff                           @@
##             feature/fix-insert-many-performance      #22   +/-   ##
======================================================================
  Coverage                                       ?   95.12%           
======================================================================
  Files                                          ?       74           
  Lines                                          ?     1128           
  Branches                                       ?      261           
======================================================================
  Hits                                           ?     1073           
  Misses                                         ?       55           
  Partials                                       ?        0           

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more