Looking for best advice on the following optimization of many calls:
myMethod("This is a test string with value: " + var + ".");
The program has many calls with this type of behavior. Ie: this type of method is called thousands of times over of the course of program usage.
Should a cache of some sorts be built to max this optimization of string usage?
myMethod(cache.get(Cache.TEST_STRING_000001) + " + var + ".);
Tips welcomed and proper instruction on best practices and efficieny is also welcomed.