04.07.2015, 16:09
Most of these optimizations are too minute to make a big a noticeable impact. Removing 2 machine code instructions just isnt worth it. If one cares about performance - pawn isnt the language of choice.
It entirely depends on the natives implementation and your use case. Say you wanted to find a substring, you would probably use strfind. The native uses a linear algorithm, but it can be done much faster with, say, kmp with the cost of a little more pre-calculation.
Quote:
Avoid creating your functions when there is a native which can do it (or maybe using a combination of natives).
|