ID: 28866 Updated by: [EMAIL PROTECTED] Reported By: dmirand at abelia-decors dot com -Status: Open +Status: Feedback Bug Type: Performance problem Operating System: Linux 2.4 / glibc 2.3 PHP Version: 5.0.0RC3 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2004-06-21 13:15:36] dmirand at abelia-decors dot com Description: ------------ When running a portion of script which fills an array with objects, it is easy to notice a significant slowness depending on what has already run before in the script., even if that "pre-processing" is totally independant . The more load that runs before, the slower the filling will be... Under 4.3.6 almost no differences between : - a "just filling" script - a big load followed by a "filling" part Both 4.3.6 and 5.0.0 RC3 compiled from source. Reproduce code: --------------- $big_load = new BigLoad ; $big_load->go() ; unset( $big_load ) ; /* Filling start */ $arr_obj_orders = array() ; foreach( $arr_no_order as $no_order ) { $obj_order = new Order ; $obj_order->load( $no_order ) ; // to show filling avancement echo $no_order ; $arr_obj_orders[$no_order] = $obj_order ; } /* Filling end */ Expected result: ---------------- The expected behavior is of course no slowness with the "filling" part of the script, ie the same behavior as if there was no big load before the filling part. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28866&edit=1
