You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Tzvetanov Grigorov (Jira)" <ji...@apache.org> on 2019/10/08 03:42:00 UTC

[jira] [Created] (WICKET-6709) Cache the value of WebRequest#isAjax()

Martin Tzvetanov Grigorov created WICKET-6709:
-------------------------------------------------

             Summary: Cache the value of WebRequest#isAjax() 
                 Key: WICKET-6709
                 URL: https://issues.apache.org/jira/browse/WICKET-6709
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 9.0.0-M3
            Reporter: Martin Tzvetanov Grigorov
            Assignee: Martin Tzvetanov Grigorov


WebRequest#isAjax()  is called many times during a request cycle.
it does few map lookups and conversions (to String and then to Boolean). In case the conversions fail it even throws StringValueConversionException.

Caching its value reduced the build time (mvn clean package -Pfast) of Wicket from 3:07 mins to 3:02mins here.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)