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

double exclamation marks in haskell -

qml - Is it possible to implement SystemTrayIcon functionality in Qt Quick application -

Qt Creator - Searching files with Locator including folder -