Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

40% ForestDB performance regression on iOS #1378

Closed
snej opened this issue Jul 21, 2016 · 2 comments
Closed

40% ForestDB performance regression on iOS #1378

snej opened this issue Jul 21, 2016 · 2 comments
Assignees
Milestone

Comments

@snej
Copy link
Contributor

snej commented Jul 21, 2016

I ran my unofficial "iTunesLibrary" benchmark on my iPhone 6 yesterday, and performance with ForestDB is 40% slower than 1.2.1. SQLite is unchanged.

Using Instruments I tracked this down to a recent ForestDB change that replaces two large (64kbyte) stack-based buffers with malloced ones. Large malloc calls (>32kb) on Darwin go directly to the vm_allocate system call, which is a lot slower than for small allocations. Backing out this change fixed the performance regression.

@snej snej added this to the 1.3 milestone Jul 21, 2016
@snej snej self-assigned this Jul 21, 2016
@snej
Copy link
Contributor Author

snej commented Jul 21, 2016

This was filed against ForestDB as MB-20219. They're fixing it by rolling back the change.

snej added a commit to couchbaselabs/cbforest that referenced this issue Jul 21, 2016
@snej snej closed this as completed in 41e2dd6 Jul 21, 2016
@snej snej added the chore label Aug 2, 2016
@snej
Copy link
Contributor Author

snej commented Aug 2, 2016

I've tagged this with "chore" so it won't show up in release notes. (We should have a "regression" tag for this purpose...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant