3 ms·
It's interesting to see where they fail. I tried to parse the stackoverflow database (XML) using node. It was so slow as to be unusable (multiple hours). I did
by asiachick 5y ago
It's interesting to see where they fail. I tried to parse the stackoverflow database (XML) using node. It was so slow as to be unusable (multiple hours). I did the same in python and it took minutes. Now of course I'm comparing libraries basically and I have no idea how poorly the node library was implemented but I'd be super curious to know if the this is something python excels as because of language features or if it's just poorly implemented libraries in node that make the difference.
- hajile 5y agoI'd bet it's because the Python library is actually just a thin wrapper around a C library. You can do that in node too via NAPI or you could compile to wasm and run there instead.