|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-11 15:18 UTC] tony2001@php.net
[2005-02-15 11:30 UTC] dmirand at abelia-decors dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 07:00:02 2025 UTC |
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.