Lizaveta Mikulskaya’s Post

🚀 Python 3.13+ is a game-changer: Free-threading (no-GIL mode) and experimental JIT boost multithreaded code by 2-5x! Speed gains are real for CPU-heavy tasks. Tested a simple parallel sum script—3x faster than 3.12. Python 3.15 stabilizes JIT fully. Here’s the snippet: # Run with: python3.13 -X free-threading import threading def compute(n): return sum(i*i for i in range(n)) threads = [threading.Thread(target=compute, args=(10**7,)) for _ in range(4)] for t in threads: t.start() for t in threads: t.join() print("Done!") Who’s upgraded? Share your benchmarks below! 👇 #Python #Python313 #Programming

  • No alternative text description for this image

To view or add a comment, sign in

Explore content categories