Re:Tcl is faster than Python for database benchmarking
by bb88 on Tuesday November 01, 2022 @07:28PM
(#33429258)
In fairness, that is in the pipe for python for a release soon. One interpreter per thread.
Re:Tcl is faster than Python for database benchmarking
by munch117 on Tuesday November 01, 2022 @07:57PM
(#33429584)
Not quite, subinterpreters can contain multiple threads each. But you're right in that if you limit yourself to one thread per subinterpreter, then you should be able to get good multicore scaling that way, when more fully fleshed out subinterpreters arrive in 3.12. The trick then becomes how to efficiently communicate between them. Interesting times ahead.
The very point of threads (as opposed to parallel processes) is the easy access to common memory and other resources.