I have a PHP script that builds a binary search tree over a rather large CSV file (5MB+). This is nice and all, but it takes about 3 seconds to read/parse/index the file.
Try igbinary...did wonders for me:
http://pecl.php.net/package/igbinary