• Resolved Antony Booker

    (@antonynz)


    Hello,

    I’m noticing a performance hit with this plugin due to the amount of file_exists checks coming from the autoloader (peepso-core/peepso.php line #2736)

    The autoload function is called via spl_autoload_register which is loads all of the classes on a site. This can result in thousands of file_exists checks for large sites, which affects backend performance.

    Is it possible for a condition to be added, such as below, to drop any non-peepso classes before the file_exists check?

    public function autoload($class)
        {
    
    	if (strpos($class, 'peepso') === false) {
        	return;
        }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Performance improvements’ is closed to new replies.