PHP array() is a little scary
Push 100,000 elements onto a PHP array() where each element is a four element associative array (a hash in Perl speak). Here’s the data being pushed: array( ‘owner’ => 100, ‘host’ => ‘www.example.com.co.uk’, ‘path’ => ‘/this/is/an/example/path.html’, ‘hostkey’ => ‘1111’ ) The memory grows by over 80 megabytes. Pushing takes less than a second or two […]
June 19, 2012 | Startups | 8 comments