| 
 
52 PHP Programming Tips
Article Index
52 PHP Programming Tips
Variable Operations
Functions And Methods
Storage
MISC Functions
Top 10 list

Storage

File System

  • Scandir() is 4% faster than opendir(), readdir(), closedir()
  • file_get_contents() is 52% faster than fopen(), fread(), fclose()
  • file_get_contents() is 39% faster than implode("\n", file())

Cache Functions

  • xcache_set() is 1,645% faster than file_put_contents()
  • xcache_set() is 646% faster than memcache->set()
  • xcache_get() is 1,312% faster than memcache->get()



 
Next >
feed image
Copyright 2007 Anthony Ferrara, All Rights Reserved