[issue298] pycurl reduces smart download speed significantly

Bogdano Arendartchuk debogdano at gmail.com
Sun Jun 24 17:54:38 PDT 2007


On Mon, Jun 25, 2007 at 12:26:43AM +0000, Tobias Gerschner at Labix Tracker wrote:
> 
> Tobias Gerschner <tobias.gerschner at gmail.com> added the comment:
> 
> This has been reported from several machines and is not related to proxy use at
> all. We added pycurl by default so that people don't have issues using proxies.
> Anyone having pycurl installed experienced noticeably slower download speed. I
> won't exclude packaging error on our side , but I have found none so far and
> think it was time to get this discussion upstream started.
> 

Noticed the same behavior here some time ago. I didn't investigated how to
properly fix it yet, but the following patch increased the transfer rate:

--- smart/fetcher.py (revision 876)
+++ smart/fetcher.py (working copy)
@@ -1668,7 +1668,7 @@
             while res == mp:
                 res, num = multi.perform()
             self._lock.release()
-            time.sleep(0.2)
+            #time.sleep(0.2)
         self._running = False

Seems to not be the right way to fix it. Needs further investigation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.labix.org/pipermail/smart-labix.org/attachments/20070624/be8acbd2/attachment-0003.pgp>


More information about the Smart mailing list