You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Thomas Heigl (Jira)" <ji...@apache.org> on 2022/02/02 21:06:00 UTC

[jira] [Updated] (WICKET-6952) Performance improvements for Strings.isEmpty

     [ https://issues.apache.org/jira/browse/WICKET-6952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Heigl updated WICKET-6952:
---------------------------------
    Fix Version/s: 10.0.0
                   9.8.0

> Performance improvements for Strings.isEmpty
> --------------------------------------------
>
>                 Key: WICKET-6952
>                 URL: https://issues.apache.org/jira/browse/WICKET-6952
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket-core
>    Affects Versions: 9.7.0
>            Reporter: Thomas Heigl
>            Assignee: Thomas Heigl
>            Priority: Minor
>             Fix For: 10.0.0, 9.8.0
>
>
> {{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
> See https://github.com/apache/wicket/pull/497.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)