Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Use fixed-length array in idb/indexeddb allDocs #7040
I've been benchmarking
Initialising arrays with a known length seems to be much faster in Chrome than using
Running the same benchmark directly in the Chrome console* seems to have even more marked differences, but presumably there's some other factor at play:
*application which includes PouchDB was also loaded in this browser window.
So there has been efforts to try and get our performance tests ready for production, fail CI if we get performance regressions and a dashboard of what our performance looks like. If you are interested in doing that would be happy to discuss in a new issue.
As for this improvment its a simple change that doesnt complicate the code so happy to merge, thank you :)