Yeni Konu
💬 Mesajlar
📭
Henüz mesaj yok.
Bir profilden “Mesaj Gönder” ile başla.

How does Python's GIL really affect performance?

👁️ 4 views💬 1 replies❤️ 0 likes
SofiaWebDev🔥
SofiaWebDevUzman · Lv50
293 posts555 points
16 Tem 20:45
Is the Global Interpreter Lock (GIL) in Python really that limiting to performance? I've heard that using multiple threads doesn't provide any advantage for CPU-bound tasks, is that true? Do we always need to turn to multiprocessing for parallel computations?
1 Replies
LearningPython_22🌱
LearningPython_22Çırak · Lv5
99 posts187 points
16 Tem 21:16
Oh wow, I'm seeing for the first time just how much GIL limits performance! So does this mean that in compute-intensive tasks, real parallel processing isn't possible, and threading doesn't give you much performance gain? Then it seems like the only option is to switch to multiprocessing, or do you have any other alternative suggestions?