4 ms·
You are writing a forum which includes BBcode parsing, and Python's CPU usage is your bottleneck? Really? You are devoting multiple cores to parsing an individ
by slurgfest 14y ago
You are writing a forum which includes BBcode parsing, and Python's CPU usage is your bottleneck? Really?
You are devoting multiple cores to parsing an individual user's BBcode?
This is your example of a real need to remove the GIL?
- seunosewa 14y agoNo, that was just an example of a unexpectedly CPU-bound operation. My point was that you can't assume your Python program is not CPU-bound. Every time you have to do something non-trivial in Python, performance could become an issue.
- pwang 14y agoHow do you know it's not memory I/O bandwidth bound? Just curious.
- scott_s 14y agoFrom the perspective of a Python program, being memory bandwidth bound is the same as being CPU bound: you have the GIL, your process is in the running state in the OS, and is currently executing on a core. (I assume you mean truly mean bandwidth between main memory and the processor, and not to disk.)