PHP include vs include_once (speed) -


possible duplicate:
why require_once bad use?

i've read somewhere include_once , require_once statements in php slower non-once counterparts. significant slowdown? has there been testing or studies of this, , has changed in recent versions of php?

the speed increase minimal , comes reference check conducted prevent code duplication. 'once' appendage preventative measure against same code being executed/included twice..this performing check comes @ minor speed cost.

if there ever instance using _once why case, code built in efficient way? better remove need rely on _once , produce better code (easier said done!).

see:

http://forums.digitalpoint.com/showthread.php?t=1693837

http://www.phpbb.com/community/viewtopic.php?f=71&t=565933

http://www.sitepoint.com/forums/showthread.php?t=269085

http://www.quora.com/what-is-the-difference-between-functions-include-and-include_once-in-php


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -