PHP的性能包括()

I have a PHP site that populates a session variable with filenames during login. When the user brings up a certain page, the data contained in these files is included into the page.

From a performance standpoint, is there a better way to accomplish this? I was thinking about loading the file data into the session array itself but wasn't sure if that would make any difference.

foreach($_SESSION['windows'] as $file)   
{  
    include("$file");
}  

You can gain more performance by NOT enclosing variables in double quotes.

include($file);

Other than that, I'd question the need to store code file names in the session, but this somehow might make sense.

Make sure to use an opcode cache for optimum performance. There is no real difference in using include($var) or include('filename.php').