The GRAPE method dispatcher is much faster if the method string contains a unique numeral code. On the other hand method strings are much more readable if not containing this code and strcmp will not work with the code part. The code will vary at every program start, so do not save enhanced method strings in files.
This is useful for method strings that are stored in variables or passed as function arguments. Because a constant string's method code can be found by hashing its address and constant function arguments will never change, there is no need to apply this functions on simple method call's arguments like that (constant arguments are easily identified by their leading """):
Of course the underlying concepts can change with new versions of GRAPE.GRAPE (obj, "my-method")();
If an unknown string is detected, the function generates a new number and stores a copy of method, so to save memory be careful not to pass random strings.
Copyright © by the Sonderforschungsbereich 256 at the Institut für Angewandte Mathematik, Universität Bonn.