SRL Archive - General

include vs. include_once


LolL

2010-06-04 23:04:54

What's the difference in functionality, performance, etc. between the following two?


{.include SomeAwesomeScript.scar}

and


{.include_once SomeAwesomeScript.scar}

Boreas

2010-06-04 23:46:32

If A and B both include C, and your script includes A and B, you will get an error, unless A/B uses include_once for C. No clue about speed, but I would assume negligible.

nielsie95

2010-06-05 05:35:09

Yes, speed is negligible because includes are included at compile time.