Posts: 198
Threads: 56
Joined: Aug 2009
Reputation:
0
If I use a include, but copy it's content to the pawno, not "#include"ing the actual file, will that be faster than using a #include normally?
Posts: 3,488
Threads: 16
Joined: Jun 2007
Reputation:
0
No, it's the same. #include will copy it anyway.
Posts: 198
Threads: 56
Joined: Aug 2009
Reputation:
0
If that's the case, then copying it in pawno should be faster, as it will only take a single action for reading the include, shouldn't it?
Posts: 6,129
Threads: 36
Joined: Jan 2009
Compile time isn't what you should be worried about. A pawn compiler grabs all the code from includes and your main script and compiles it in to one AMX file.
Posts: 198
Threads: 56
Joined: Aug 2009
Reputation:
0
So, does that mean that there will be a difference in the .amx file, if I remove a #include and compile it? What you mean is, #include also get saved in .amx?
Posts: 2,726
Threads: 85
Joined: Jul 2010
Reputation:
0
Compiler is a computer program (or set of programs) that translates source code written in a computer language into another computer language (the target language).
Source: wikipedia.