[wp-trac] [WordPress Trac] #16236: Method to stream file downloads in HTTP API, to reduce update memory footprint

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 24 09:51:50 UTC 2011


#16236: Method to stream file downloads in HTTP API, to reduce update memory
footprint
----------------------------+-----------------------
 Reporter:  markjaquith     |       Owner:  sivel
     Type:  task (blessed)  |      Status:  accepted
 Priority:  normal          |   Milestone:  3.2
Component:  HTTP            |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+-----------------------

Comment (by dd32):

 would've helped if I used the right function (memory_get_peak_usage())

 results are similar, <2000 extra bytes used for all transports aside for
 the HTTP Extension:
 {{{
 exthttp consumed 9,314,240 Bytes of memory to download 3,096.07kB, took 8
 seconds, @ 387.01 K/s
 }}}
 That's the difference between the peak memory usage before a
 wp_remote_request() and after it completed.

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


More information about the wp-trac mailing list