TGViewer
Data eXplore : Data Science, ML, Big Data, LLMs and AI Security Data eXplore : Data Science, ML, Big Data, LLMs and AI Security @dataxplore · 586 subscribers
Post #1717 343
A clear comparison of speed of the new python 3.14 with previous version

Note that now multithreading has become even faster than multiprocessing. All because new build allows working without the GIL.

A brief explanation.
GIL (Global Interpreter Lock) is a global interpreter lock that allows only a thread of Python bytecode to execute at a time (even if you have 16 cores). So previously, before 3.14, multithreading as such didn't exist in Python.

To bypass GIL, multiprocessing was used. There, each process is a separate interpreter instance and each process has its own GIL. This was only way to parallelize cores in Python. But there was a downside: each process had its own copy of memory, and data had to be serialized when passed. This caused significant overhead.

Now, in the new version without the GIL, threads operate in the same address space with shared memory access. The result is immediately reflected in speed: multithreading is now 33% faster than multiprocessing. In 3.13, by the way, it was exactly the opposite.


Waiting for free-threading support in PyTorch and NumPy - Try Here

🤖 Data Science, ML & Big Data with @DataXplore
More from @dataxplore
  1. Oct 1, 2026Monitoring and debugging "silent" token drift in LLM pipelines: frequency analysis of embe…
  2. Sep 30, 2026Online detection of feature collisions in TDA transformation When using Topological Data A…
  3. Sep 18, 2026Am going to announce something big (for me, it's really big) on October 11, 2026.
  4. Sep 14, 2026Post #2188
  5. Aug 31, 2026I joined a Russian community on Telegram. They share some Russian startup and technology u…
  6. Aug 22, 2026Post #2185
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →