2 ms·
This is actually amazing. My python programs rarely run at 100% cpu, whereas C++ binaries are usually up there. Always thought python's inefficiency causes the
by nurettin 6y ago
This is actually amazing. My python programs rarely run at 100% cpu, whereas C++ binaries are usually up there. Always thought python's inefficiency causes the drop in cpu utilization.
- ygra 6y agoPython's regex implementation is probably not written in Python, so while it's trying to match, no Python code runs; it's all /C(++)?/.
- nromiun 6y agoI don't know about how efficient it is but I have always been able to peg all cores with the multiprocessing module. Even something useless like "x * x" is more then enough for 800%.