[Python-Dev] Point of building without threads? (original) (raw)

Stefan Krah stefan at bytereef.org
Wed May 9 11:26:29 CEST 2012


Antoine Pitrou <solipsis at pitrou.net> wrote:

> decimal is about 12% faster without threads, because the expensive > thread local context can be disabled.

If you cached the last thread id along with the corresponding context, perhaps it could speed things up in most scenarios?

Nice. This reduces the speed difference to about 4%!

Stefan Krah



More information about the Python-Dev mailing list