On 4/27/2012 9:20 PM, Paul Rubin wrote:
John Nagle<na...@animats.com>  writes:

The code that stored them looked them up with "getaddrinfo()", and
did this while a lock was set.

Don't do that!!

    Added a local cache in the program to prevent this.
Performance much improved.

Better to release the lock while the getaddrinfo is running, if you can.

   I may do that to prevent the stall.  But the real problem was all
those DNS requests.  Parallizing them wouldn't help much when it took
hours to grind through them all.

                                        John Nagle

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to