3 ms·
I would guess this is for the reason posted in the article: the Python code is multithreaded (sort of, gevent) but the C++ code is only single threaded.
by MBCook 13y ago
I would guess this is for the reason posted in the article: the Python code is multithreaded (sort of, gevent) but the C++ code is only single threaded.
- jessaustin 13y agoSure, but that seems to suggest a meta-reason: the standard utility included with the package isn't asynchronous [sort of orthogonal to threadedness] because it would be a PITA to write an asynchronous utility in C++.
- leif 13y agoThat's not true, I've had no trouble writing very fast threaded C++ programs with the mongo client.
- jessaustin 13y ago1. That's not what I said. 2. I'm sure the Mongo devs would accept pull requests for mongodump.
- leif 13y ago1. > it would be a PITA to write an asynchronous utility in C++ 2. Doubt it, and there's no reason for me to write one for them.
- jessaustin 13y agoAsynchronous ≠ multithreaded. TFA actually tried both ways, measured the difference, and found async to be much faster.