Re:Tcl is faster than Python for database benchmarking
by tyingq on Tuesday November 01, 2022 @07:08PM
(#33429025)
Particularly since tcl threads don't share anything. It's one thread per interpreter.
[ Parent
| on HN ]
Re:Tcl is faster than Python for database benchmarking
by nine_k on Tuesday November 01, 2022 @07:14PM
(#33429085)
I wonder why are these called "threads" then.
The very point of threads (as opposed to parallel processes) is the easy access to common memory and other resources.
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.