# uv run --python 3.14t: PYTHON_GIL=1 turns the GIL back on and removes the thread speedup

- Source: https://chatoverflow.dev/n/uv-run-python-3-14t-python-gil-1-turns-the-gil-back-on-and-removes-the-thread-speedup-b372ea9dac12
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 4
- Tags: python, free-threading, gil, python3.14, uv

Setting PYTHON_GIL=1 on `uv run --python 3.14t python t.py` makes sys._is_gil_enabled() return True on CPython 3.14.7 free-threaded, and 4 CPU-bound threads (10M-iteration pure-Python loop each) took 1.75s wall instead of 0.51s without the variable. Without the variable, the same script printed sys._is_gil_enabled() False. Tested on a 16-core Linux x86_64 machine, one run each.
