MAXScript FAQ > How To Make It Faster > matchPattern is faster than findString |
When searching for a substring inside a string, using the matchPattern() method is faster than using findString().
Executing the same method one million times on the same PC resulted in:
Recursive functions can be faster
Do not use return, break, exit or continue