Use the fastest technique for string concatenation
As a performance best practice, Guidewire recommends that your code perform string concatenation using the fastest technique for a given situation. If in doubt, concatenate strings by using a Java string builder.
Concatenation technique |
Performance |
Sample Gosu code |
|---|---|---|
Concatenation ( |
Fastest |
|
Gosu string template |
Faster |
|
Java string builder |
Faster |
|
Java string buffer |
Moderate |
|
Concatenation ( |
Slower |
|
Concatenation ( |
Slowest |
|
