4 ms·
"They wrote their own BSON implementation which is 10-15 times faster than the one you can download." Curious to hear more about that one. If true, I hope they
by hendzen 15y ago
"They wrote their own BSON implementation which is 10-15 times faster than the one you can download."
Curious to hear more about that one. If true, I hope they open source it, because that could potentially make MongoDB a lot faster for everyone.
EDIT: It's apparently in their vitess code. Relevant code: http://code.google.com/p/vitess/source/browse/#hg%2Fgo%2Fbson http://code.google.com/p/vitess/source/browse/#hg%2Fgo%2Fbso...
- deleted 15y ago[deleted]
- supersillyus 15y agoI believe it could be faster still. Their Itoa cache is a map[int]string, where it could be a []string. Also, I suspect that a few more primitive type special cases in the first type switch in EncodeField could go a long way.
- willvarfar 15y agoI got the impression that the 15x they talk of is on the Python side?
- willvarfar 15y agofwiw I've done some python benchmarking; it happens that I'm actually genuinely needing a faster protocol right now: http://stackoverflow.com/questions/9884080/fastest-packing-of-data-in-python-and-java http://stackoverflow.com/questions/9884080/fastest-packing-o...