You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move the Ruby driver to a fast protobuf library #1025
This is in review 648 by @AtnNn . It still needs some packaging love. Moving protobuf libraries was surprisingly easy, but removing that bottleneck exposed another large performance problem.
I'm currently seeing around a 10x performance improvement sequentially inserting 100 10kb unbatched documents (from 23 seconds to 2.7).
When someone constructed an object, we'd call caller on every sub-term, when we only needed to call it at the toplevel and pass it down. It turns out that doing so is really expensive. That problem is fixed in the code review.
Activity
AtnNn commentedon Jun 18, 2013
Isn't this #783?
coffeemug commentedon Jun 18, 2013
Yes it is. Closing #783 (because this issue has a consistent name with py and js versions of it).
Also, as @mlucy mentioned in #783, https://github.com/codekitchen/ruby-protocol-buffers looks promising.
mlucy commentedon Jun 19, 2013
This is in review 648 by @AtnNn . It still needs some packaging love. Moving protobuf libraries was surprisingly easy, but removing that bottleneck exposed another large performance problem.
I'm currently seeing around a 10x performance improvement sequentially inserting 100 10kb unbatched documents (from 23 seconds to 2.7).
mlucy commentedon Jun 19, 2013
Also, for the record, we're still 10x-100x slower than JSON serialization of the same object.
mlucy commentedon Jun 19, 2013
Also, astonishingly, when I test it the JSON encoding of objects tends to be smaller than the protobuf encoding (not by that much, though).
coffeemug commentedon Jun 19, 2013
What was the other large performance problem? Also, is it fixed or remains to be fixed (so we can get a sense of where we can take the 10x number)?
mlucy commentedon Jun 19, 2013
When someone constructed an object, we'd call
calleron every sub-term, when we only needed to call it at the toplevel and pass it down. It turns out that doing so is really expensive. That problem is fixed in the code review.mlucy commentedon Jun 19, 2013
Er, actually, I ran the test incorrectly; it's actually only a 5x improvement.
mlucy commentedon Jun 25, 2013
This is in next.
coffeemug commentedon Jun 25, 2013
Has the relevant packaging work been coordinated with @AtnNn? (sorry if I'm asking the obvious, I may be paranoid)
AtnNn commentedon Jun 25, 2013
The dependencies listed in the gemfile have changed.