Nican on Nostr: Looking for a #python expert: Much like node.js, Python is mostly limited to only 1 ...
Looking for a #python expert:
Much like node.js, Python is mostly limited to only 1 core because of the GIL. Node.js has a "Cluster" module, which spawns a fork per core, and load balances incoming connections between the different forks.
Does Python have something similar?
[1] https://lwn.net/Articles/542629/
[2] https://nodejs.org/api/cluster.html#cluster
Much like node.js, Python is mostly limited to only 1 core because of the GIL. Node.js has a "Cluster" module, which spawns a fork per core, and load balances incoming connections between the different forks.
Does Python have something similar?
[1] https://lwn.net/Articles/542629/
[2] https://nodejs.org/api/cluster.html#cluster