Hacker News new | ask | show | jobs
by nurettin 2186 days 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.
2 comments

I 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%.
Python's regex implementation is probably not written in Python, so while it's trying to match, no Python code runs; it's all /C(++)?/.