4 ms·
Is this negligible in performance until the GIL radically changes? I find parallel processing has muc larger increases in speed.
by chaostheory 4y ago
Is this negligible in performance until the GIL radically changes? I find parallel processing has muc larger increases in speed.
- yoyohello13 4y agoSince async is single threaded the GIL shouldn't come into play.
- evilturnip 4y agoQuestion though: asyncio is implemented as threads, which is where the GIL chokes, right?
- L3viathan 4y agoasyncio is _not_ implemented as threads. It has features where it can wrap a sync function inside a thread in order to turn it into an async function, but if you just write "normal" async code, all your code is running in a single thread.
- evilturnip 4y agoAh, ok that makes more sense.
- deleted 4y ago[deleted]