STINNER Victor <victor.stin...@haypocalc.com> added the comment:

> It appears that the stall happens due to time.strftime call, which internally 
> opens 
> a file ('/etc/localtime')

In the GNU libc, strftime() calls tzset() and tzset() uses a lock to be thread 
safe. Yes, releasing the GIL before calling strftime() would speed up your use 
case.

----------
nosy: +haypo

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7739>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to