[wp-trac] [WordPress Trac] #10765: Bigger HTTP downloads with curl class run out of memory

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 11 06:49:21 UTC 2009


#10765: Bigger HTTP downloads with curl class run out of memory
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:                              
     Type:  defect (bug)  |      Status:  new                         
 Priority:  normal        |   Milestone:  2.9                         
Component:  General       |     Version:  2.8.4                       
 Severity:  normal        |    Keywords:  has-patch developer-feedback
--------------------------+-------------------------------------------------

Comment(by dd32):

 > well that "temporary" variable in that case is even not needed.
 I meant more in general of the handling, I think i've seen one or 2
 locations where a copy is returned in some form whilst a temporary
 variable is left about elsewhere.

 > it would make sense to use temporary files in suche cases instead of
 using the memory.
 True, Except that most of hte HTTP methods can only return a full item,
 rather than blocks of it, it'd mean duplicating the code.. As for
 unziping, I cant remember, but i have a feeling it may only use a string..
 Not entirely sure, I know i've done it a LOT more efficient in another
 project i'm working on in terms of memory usage, havnt gotten around to
 considering porting any useable changes back to WP yet though..

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10765#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list