3 ms·
> I just wish Python had parallelism. Would support for parallelism have benefits other than increasing speed? If not, I'd rather see an increase in Python's s
by pansa2 5y ago
> I just wish Python had parallelism.
Would support for parallelism have benefits other than increasing speed? If not, I'd rather see an increase in Python's single-threaded performance - which is what Guido and his colleagues at Microsoft are currently working on.
- samsquire 5y agoThe problem with interpreting the Python way, using a switch loop ceval.c is that there is plenty of overhead with that loop. Branch prediction fails. It could be every opcode is compared before reaching the actual opcode in the switch. I wonder if Python will ever take the JVM approach of having a TemplateInterpreter and mapping each bytecode to assembly directly. Of course you would have to do it for each platform. http://openjdk.java.net/groups/hotspot/docs/RuntimeOverview.html#Interpreter|outline http://openjdk.java.net/groups/hotspot/docs/RuntimeOverview....