How to improve the performance for operations on a big static array in PHP? -


i have big , complicated static multidimensional array in php:

static $data = array (  'entry1' => array( 'field1' => array( ), 'field2' => array( ) .... ) ...  ); 

the length of var_export($data, true) 2mb.

if want access $array['entry1']['field1'], first time takes ~5 second. guess entire array needs loaded in memory. there advice how improve performance? should split array smaller arrays?


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -