For three decades Python threads could run concurrently but never in parallel. The global interpreter lock made that choice: only one thread executed bytecode at a time, which kept reference counting simple and made the vast ecosystem of C extensions safe by default. The free-threaded build removes that lock. What replaces it is not a faster version of the same design but a different set of promises, and the differences are measurable in ways that matter to anyone shipping Python services.

The GIL buys thread safety and fast single-threaded code by refusing parallel bytecode execution, while the free-threaded build buys parallel execution by making object safety explicit and charging every reference count update for it.

Part One: What is actually being compared

The classic interpreter protects its state with one mutex. A thread must hold it before executing bytecode, and it releases it periodically so others can run. CPython's reference counting also mutates object headers on nearly every operation, so without a lock those increments and decrements would race. The GIL therefore solves two problems at once: interpreter state and object lifetime.

The free-threaded build keeps the same language and the same objects but changes the implementation. Reference counting becomes atomic or is replaced with deferred schemes, object locks are attached where needed, and internals that assumed a single active thread get explicit synchronisation. Immortal objects, which never need their count changed, remove a large fraction of the shared writes for things like small integers and interned strings. Bias tracking lets a thread avoid atomic operations on objects it mostly uses alone.

These are implementation choices, not syntax. The same script can run under either build, but the performance character changes completely, and extension modules have to declare which model they support.

Part Two: The arithmetic of the trade

Start with the cost of a reference count. In the classic build an increment is a load, an add and a store to a plain machine word. There is no lock instruction and no cache-line arbitration. In a free-threaded build the same operation must be atomic or deferred, which on x86 means a locked instruction that costs tens of cycles when the line is contended and a handful when it is not. Bytecode-heavy programs execute millions of these per second.

Early free-threaded builds measured roughly a 5 to 15 percent slowdown on single-threaded code, with the gap coming mostly from atomic reference counts and internal locking, while pure-Python parallel workloads on eight cores scaled to around four to seven times a single thread rather than staying flat.

That pair of numbers explains the design. Removing the GIL does not make Python faster at everything; it changes which workloads can use more hardware. A web handler that spends its time in pure Python and holds no global state can now use eight cores for eight requests. The same handler running on the classic build used one core no matter how many were available. A script that runs once at startup will likely get slower, not faster.

The interior details matter too. When a thread creates a list and fills it locally, biased reference counting keeps the fast path close to the old cost. When many threads touch one shared dictionary, the lock convoy dominates and the program can be slower than the GIL version, because the single lock at least avoided contention by serialising cleanly. Deferred reference counting shifts work to a later sweep, which lowers the hot-path cost but moves the expense into garbage collection pauses.

Part Three: Where the model breaks

The clean scaling story assumes the time is spent in interpreter bytecode. Most real services are not. They call database drivers, compression libraries, image codecs and numerical kernels written in C, Rust or Fortran. Many of those extensions relied on the GIL for safety. Under the classic build a library could mutate a static cache without a lock, knowing only one thread was in the interpreter at a time. Under free threading that assumption becomes a data race.

The ecosystem response is a compatibility flag. Modules that audit their state and add locks can declare that they support free-threaded interpreters; others may still import but are unsafe. Package maintainers now potentially ship two binary wheels for the same platform, one per model, which doubles build matrices and makes installation errors more likely. A user who installs a mismatched wheel can get corruption rather than a clear failure.

Memory use is another cost. Per-object locks, shadow counters for bias tracking and immortal-object tables all consume space. Long-running services with tens of millions of small objects may see a noticeable rise in resident memory even before their workload becomes parallel. That matters most in containers with tight memory limits, where the extra overhead can push a process into swapping or an out-of-memory kill.

There is also a subtle behavioural difference. Code that used a sleep or a blocking call to let another thread run was relying on GIL handoff semantics. In a free-threaded build threads genuinely overlap, so race conditions that were invisible for years become intermittent bugs. Tests that passed because the scheduler serialised them can start failing on one machine and not another.

Part Four: The later cost

Owning this choice creates ongoing work. Teams must decide which interpreter model each service uses, verify every native dependency under that model, and keep both in CI if they share code. Debugging changes character: a race that appears once in ten thousand requests is far harder to reproduce than a deadlock that shows up in a stack trace.

The safe migration pattern is incremental. Start with services whose hot path is pure Python and whose dependencies are known to be free-threaded compatible. Keep latency-sensitive single-threaded jobs on the classic build until measurements justify a move. Treat the flag as a deployment property that is pinned and tested, not something that flips with an environment variable in production.

There is a middle path worth understanding. Even with the GIL, code can achieve parallelism by releasing it around blocking calls or by using processes. Multiprocessing gives true parallelism with clean isolation, at the price of serialising data between workers. For a CPU-bound numerical job that cost is small; for a job with a large shared graph it can be decisive. The free-threaded build does not remove the process option, it adds a third choice with lower data-transfer cost and higher correctness burden.

Part Five: Outside the engineering team

For a user, the difference shows up as whether a background export freezes the interface for two seconds or completes unnoticed. Web services with concurrent requests benefit most, because each request is naturally independent. Interactive tools benefit when a long computation no longer blocks timers and input handling. A command-line script that runs a single pass over data sees little.

For the business, the benefit is capacity: a fleet that was CPU-bound on one core per process can serve more traffic on the same machines. The cost is engineer time spent on compatibility audits and race investigations, which is real but bounded and paid once per dependency. Organisations with a small, well-maintained dependency set will capture the gain quickly; organisations with a decade of binary extensions will move slowly.

A fair evaluation pins the interpreter build, the dependency versions and the workload mix, then measures throughput per core, p99 latency and resident memory. Comparing a free-threaded build with upgraded libraries against a classic build with old ones will attribute the wrong cause.

Market sizing check

If Python's share of paid cloud application workloads continues to grow and runtime efficiency improvements capture even a small fraction of that spend, the segment tied to Python execution, monitoring and production support is plausibly $8B to $20B a year by 2030. The swing factor is how quickly native extensions become compatible, because compatibility determines how much of the installed base can actually use extra cores.

These figures are a synthesis of published market ranges and a stated model, not a forecast of any specific vendor.

The comparison that matters

The choice is between a single lock that makes everything safe and slightly slower, and a set of fine-grained mechanisms that make parallel work possible and correctness a local responsibility. Both are legitimate answers, and the same organisation can reasonably run both builds for different services.

The ranking assumes the workload shape holds. Shift toward pure Python request handling and the free-threaded build wins on throughput; shift toward single-threaded scripts and native-library work and the classic build keeps its speed advantage.

Remove the global lock when your workload is pure Python and concurrency-limited, and keep it when single-thread speed and a mature extension ecosystem matter more than using extra cores.

SOL: HCqPmPJM3NVtS6YrmVaTZYnuP8XZ2PFgQZKT94VK1LkS
Creating this takes real effort — thank you for the support.