Details
-
Enhancement
-
Resolution: Fixed
-
P5
-
None
-
None
-
b82
Description
Two classes in codegen currently use String.replace("_STRICT", "") to cut the "_STRICT" postfix from internal callsite names. This is a bit wasteful because the search term is compiled to a regexp and we know it only ever occurs at the end of the String. So something like the following seems more efficient:
name.endsWith("_STRICT") ? name.substring(0, name.length() - 7) : name
name.endsWith("_STRICT") ? name.substring(0, name.length() - 7) : name