Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
9.7.0
-
None
Description
Strings.isEmpty is one of the most called methods in our application and consistently shows up as hot in our production profiler.
Two simple performance optimizations can be tried:
- Overload the method with a String parameter, to help the JIT compiler with it's decision to inline the method
- Avoid calling String.trim if the first character isn't whitespace
Attachments
Issue Links
- links to