-
-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
- Loading branch information
There are no files selected for viewing
4 comments
on commit c681bda
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nolanlawson could you verify this is as performant as your last case? I'm seeing no difference here, with a considerable increase for the average case in binarySlice
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.6s, a tiny bit slower (1.4 before), but still good in my opinion! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also if you're curious to test yourself, it's just:
hub clone pouchdb/pouchdb && cd pouchdb
npm i && npm run build && npm run dev
# open localhost:8000/tests/integration/?adapters=localstorage&grep=attach in a browser
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nolanlawson 14% difference isn't great, if consistent.
However, I'm working on some utf8slice
improvements, so hopefully I'll cut it down even further.
In terms of performance, I feel like we'll be able to squeeze more out of
utf8slice
before its worth really breaking out these conditionals.