--disable-gil is slower for recursive logic compared to using GIL. #128856
Labels
performance
Performance or resource usage
topic-free-threading
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
I found that the nogil build performs worse for recursive logic(5s vs 17s in my test) but slightly better for iterative logic.
The Dockerfile for building Python with GIL is exactly the same as the Docker official Python image Dockerfiles for Debian.
Here is the command I use to build the image.
Here are my test results.
CPython versions tested on:
3.13
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: