-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Allocator<T>::uncompress is a performance nightmare #867
Comments
Comparison between old and new code. Test case is a 138 MB snapshot shrinking down to 9.3 MB after compression:
Pros:
Cons:
Overall, the cons outweigh the pros. Therefore, I'll revert to the old code. |
Might be faster to just use this rather than the
|
Indeed. This makes a huge difference. Very cool! Debug build:
Release build:
|
Uncompressing a snapshot can take multiple seconds if it contains a hard drive. The reason is that the implementation utilizes
std::vector
which is awfully slow, at least in debug builds.TODO: Rewrite the code using good old C arrays.
The text was updated successfully, but these errors were encountered: