[wp-trac] [WordPress Trac] #5357: wxr import: don't load the whole file at once

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 14 22:58:19 GMT 2007


#5357: wxr import: don't load the whole file at once
-------------------------+--------------------------------------------------
 Reporter:  tellyworth   |       Owner:  anonymous
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  2.5      
Component:  General      |     Version:           
 Severity:  normal       |    Keywords:           
-------------------------+--------------------------------------------------
 The wxr importer currently loads all posts into a large array before
 processing them.  That makes large imports impossible on servers with a
 small memory limit.

 The enclosed patch refactors import/wordpress.php to keep only one post at
 a time in memory.  I've keep most of the original code intact to minimize
 breakage.  It's no faster or slower than before.  There are other
 optimizations that could be made but this is a necessary first step.

 Unit tests are in http://svn.automattic.com/wordpress-tests/wp-
 testcase/test_import_wp.php

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5357>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list