Antoine Pitrou <pit...@free.fr> added the comment: 64-bit Linux:
./python -m timeit -s "from _thread import allocate_lock" "allocate_lock()" -> before: 0.0712 usec per loop -> after: 0.0556 usec per loop ./python -m timeit -s "from _thread import allocate_lock;l=allocate_lock()" "l.acquire();l.release()" -> before: 0.177 usec per loop -> after: 0.168 usec per loop So there's a small improvement on artificial benchmarks. ---------- nosy: +pitrou _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15124> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com