[Python-Dev] Point of building without threads? (original) (raw)
Stefan Krah stefan at bytereef.org
Thu May 10 20:43:11 CEST 2012
- Previous message: [Python-Dev] Point of building without threads?
- Next message: [Python-Dev] Python 3.3 cannot import BeautifulSoup but Python 3.2 can
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Stefan Krah <stefan at bytereef.org> wrote:
> > Nice. This reduces the speed difference to about 4%! > > Note that you don't need the actual thread id, the Python thread state > is sufficient: PyThreadStateGET should be a simply variable lookup in > release builds.
I've tried both ways now and the speed gain is roughly the same. Perhaps the interpreter as a whole is slightly faster --without-threads? That would explain the remaining speed difference of 4%.
Actually this seems to be the case: In the benchmark floats are also about 3% faster without threads.
Stefan Krah
- Previous message: [Python-Dev] Point of building without threads?
- Next message: [Python-Dev] Python 3.3 cannot import BeautifulSoup but Python 3.2 can
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]