-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Improve benchmarks #12
Conversation
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.
LGTM
Update these benchmarks perhaps? Some time has passed, and c-snappy won't have changed, but I bet there's a chance that rust-snappy (snap) has, or that there's a faster, newer alternative. |
Hey @martindurant! Thanks for the push, looking back into it now, seems like (one of?) the most efficient ways to pass back the bytes from Rust is to use After prototyping with that a bit, it seems like cramjam could be reliably faster than python-snappy, less a few cases: Output from this evening's session.
|
That's what I wanted to hear! It is interesting that the comparison is so favourable in some cases, but still marginally worse in others. Still: I'm convinced, and the rest of the algorithms were already better. I'll try to get some help with the conda-forge recipe, and then fastparquet can finally ditch python-snappy. In fact, there will be an argument to archive python-snappy (which I also co-maintain) eventually. |
If you are happy with this change, it should be worth a release. |
ping @milesgranger , would love to know when you think you might include this and release it, and please update the benchmarks in https://github.com/milesgranger/pyrus-cramjam/blob/master/benchmarks/README.md when ready. |
Hi, at least until after the weekend most likely. And there are still some details to flesh out. That was just some prototyping; there are some issues with the approach that may require a fair amount of refactoring. I'll make a PR and ping you when ready. |
Make benchmarks more comprehensive as suggested in BurntSushi/rust-snappy#34