Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2334

Decrease number of operations with HashMap #1

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4
    • Component/s: None
    • Labels:

      Description

      During profiling I found that there is a lot of work with HashMap inside tapestry framework.

      With following patch time per request decreased on 2.2ms (4.6% of overall time). Measurements were done with apache benchmark on a real application after warm up phase.

      The idea behind the patch is to get rid of double lookup inside HashMap (or event triple lookup) whenever only one lookup is enough.

      Also this patch decrease number of ThreadLocal.get calls in two times by moving PerThreadServiceCreator functionality into PerthreadManager.

        Attachments

          Activity

            People

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              mihasik Michael Mikhulya
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: