Thread 105938211 - /g/ [Archived: 355 hours ago]

Anonymous
7/17/2025, 7:03:27 PM No.105938211
1611082358034
1611082358034
md5: a4f507eaaa8057095a8f0a5d21da8115🔍
Python's global interpreter lock prevents bytecode from actually being executed in parallel, causing multi-threaded code to execute SLOWER.
Why?
Replies: >>105938223 >>105938299
Anonymous
7/17/2025, 7:04:54 PM No.105938223
>>105938211 (OP)
Don't know, don't care, didn't ask. Rewrite it in C or C++
Han
7/17/2025, 7:12:15 PM No.105938299
>>105938211 (OP)
I guess my friends were right, you could spin up multiple processes rather than multiple threads. That way parallel processing is actually… parallel in Python, don’t know why it is designed this way. Or yeah, use C/C++.