matchPattern is faster than findString

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:

Previous Tip

Recursive functions can be faster

Next Tip

Do not use return, break, exit or continue