4 ms·
If the 1 second is spent waiting for IO, it will take 1 second in whatever language. But yes python is slow. However I've seen good python code be faster than
by bombolo 4y ago
If the 1 second is spent waiting for IO, it will take 1 second in whatever language.
But yes python is slow.
However I've seen good python code be faster than bad C code.
- roflyear 4y agoWell, to be fair the "good python code" is probably just executing something written in c lol. But lots of python is backed up by stuff written in c.
- bombolo 4y agoNot necessarily. Just using a better optimized sort or hash algorithm can make a big difference. I was talking specifically of pure python code (except the python's standard library itself, where it really is unavoidable).
- kaba0 4y agoOf course algorithmic complexity will trump anything else at big enough n values.