|
Page 6 of 6 Top 10 most expensive operations
These are the most expensive operations in this test (by time)
-
file_put_contents()
-
opendir() readdir() closedir()
-
scandir()
-
fopen() fread() fclose()
-
memcache->get()
-
memcache->set()
-
implode('\n', file())
-
include()
-
include_once()
-
file_get_contents()
These are the biggest time savers (per call)
-
xcache_set() vs. file_put_contents()
-
xcache_get() vs. memcache->get()
-
xcache_set() vs. memcache->set()
-
file_get_contents() vs. fopen(), fread(), fclose()
-
file_get_contents() vs. implode('\n', file())
-
include(relative) vs. include(full_path)
-
require_once() vs. include()
-
scandir() vs. opendir() readdir() closedir()
-
static method vs. call_user_func()
-
preg_match(/regex/i) vs. eregi(regex) Discuss this article on the forums. (2 posts)
|