5 ms·
> So we got concurrent units of work executed at the same time, I fail to see how that is not parallel. I thought that by definition this is impossible under t
by iooi 13y ago
> So we got concurrent units of work executed at the same time, I fail to see how that is not parallel.
I thought that by definition this is impossible under the GIL. Not completely sure, but would love to know. I have written thousands of lines using gevent and eventlet but have only achieved peaks of 10 Mb/s (on servers that have at least 100), and I'm sure that truly concurrent languages could fully take advantage of that throughput -- currently in the process of migrating from Python.
- rdtsc 13y agoIt is hard to tell but if you mostly fetch data without processing it, copying it, compute it, then gevent can certainly handle concurrent socket operations. Python's GIL won't let you execute Python code in parallel like say you start multiplying numbers in one thread and another. You won't multiply twice as many numbers because of the GIL. But for IO concurrency you should achieve parallelism (unless you have a string CPU consuming part in there as well).
- ddorian43 13y agowhat language are you migrating to ?
- meowface 13y agoIf you have anything that's even ever so briefly blocking gevent, then you will indeed be bottlenecked in that way. I'd be curious to see if your migration does allow better bandwidth peaks, though.