Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6794

Improve performance of UrlEncoder and UrlDecoder

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 9.0.0-M5
    • 9.0.0
    • wicket-core
    • None

    Description

      Wicket's UrlEncoder and UrlDecoder are customized versions of java.net.URLEncoder adapted to support conditional encoding of space for paths vs queries.

      The implementation of java.net.URLEncoder is far from optimal and frameworks such as Spring and Apache HttpClient use their own, much faster implementations.

      Since both of these classes showed up prominently in my production profiler, I would suggest to replace the current implementation with the quite elegant one in Spring's UriUtils.

      Attachments

        Activity

          People

            thomas.heigl Thomas Heigl
            thomas.heigl Thomas Heigl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: