Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-2299

Performance improvement : Many hst model objects create needless immutable lists/maps very very often

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Outdated
    • None
    • None
    • None
    • None

    Description

      Many object (like HstComponentConfigurationService) contains methods like

      public Map<String, String> getParameters()

      { return Collections.unmodifiableMap(this.parameters); }

      @Override
      public Set<String> getParameterPrefixes()

      { return Collections.unmodifiableSet(parameterNamePrefixSet); }

      These getters are typically called many many times per request and concurrently by multiple requests. We should replace this by returning an unmodifiable instance variable that is created only once

      This is almost trivial to do

      Attachments

        Activity

          People

            aschrijvers Ard Schrijvers
            aschrijvers Ard Schrijvers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: