Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-6870

Cache by-type lookups in DefaultListableBeanFactory

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.5.6
    • Fix Version/s: 3.2 M1
    • Component/s: Core
    • Labels:
    • Last commented by a User:
      true

      Description

      The Autowiring algorithms tries to work out the dependencies by building up the Beans. If this fails, a BeanCreationException is thrown, caught and then a different way to handle the dependencies is tried. In some situations this results in slow performance and it is probably also not the nicest programming style.

      1. perf305MainPatch.html
        110 kB
        Kristian Rosenvold
      2. perf305stock.html
        121 kB
        Kristian Rosenvold
      3. perfDiffStockVsPatch1.html
        155 kB
        Kristian Rosenvold
      4. SPR6870.patch
        3 kB
        Kristian Rosenvold

        Issue Links

          Activity

          eberhardwolff Eberhard Wolff created issue -
          juergen.hoeller Juergen Hoeller made changes -
          Field Original Value New Value
          Fix Version/s 3.1 M2 [ 11379 ]
          Assignee Juergen Hoeller [ juergen.hoeller ]
          juergen.hoeller Juergen Hoeller made changes -
          Fix Version/s 3.1 M2 [ 11379 ]
          tmarshall Trevor Marshall made changes -
          Workflow jira [ 30487 ] SPR Workflow [ 40650 ]
          cbeams Chris Beams made changes -
          Labels performance
          krosenvold Kristian Rosenvold made changes -
          Attachment SPR6870.patch [ 18033 ]
          Attachment perf305MainPatch.html [ 18035 ]
          Attachment perf305stock.html [ 18034 ]
          Attachment perfDiffStockVsPatch1.html [ 18036 ]
          cbeams Chris Beams made changes -
          Labels performance waiting-for-triage
          cbeams Chris Beams made changes -
          Labels waiting-for-triage
          cbeams Chris Beams made changes -
          Labels performance
          Fix Version/s 3.1 RC1 [ 12208 ]
          juergen.hoeller Juergen Hoeller made changes -
          Fix Version/s 3.1 Backlog [ 11107 ]
          Fix Version/s 3.1 RC1 [ 12208 ]
          cbeams Chris Beams made changes -
          Fix Version/s 3.1 Backlog [ 11107 ]
          Fix Version/s General Backlog [ 12209 ]
          cbeams Chris Beams made changes -
          Link This issue relates to SPR-7949 [ SPR-7949 ]
          cbeams Chris Beams made changes -
          Fix Version/s 3.2 M1 [ 11896 ]
          Fix Version/s General Backlog [ 12209 ]
          cbeams Chris Beams made changes -
          Assignee Juergen Hoeller [ juergen.hoeller ] Chris Beams [ cbeams ]
          cbeams Chris Beams made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          cbeams Chris Beams made changes -
          Resolution Complete [ 8 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          cbeams Chris Beams made changes -
          Summary Autowiring might be slow and uses interesting programming styles Cache by-type lookups in DefaultListableBeanFactory
          cbeams Chris Beams made changes -
          Link This issue is duplicated by SPR-7949 [ SPR-7949 ]
          cbeams Chris Beams made changes -
          Link This issue is duplicated by SPR-9296 [ SPR-9296 ]
          cbeams Chris Beams made changes -
          Link This issue is duplicated by SPR-8095 [ SPR-8095 ]
          cbeams Chris Beams made changes -
          Link This issue relates to SPR-7949 [ SPR-7949 ]
          cbeams Chris Beams made changes -
          Worklog Id 28718 [ 28718 ]
          Time Spent 3.5h [ 12600 ]
          cbeams Chris Beams made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          tmarshall Trevor Marshall made changes -
          Workflow SPR Workflow [ 40650 ] New SPR Workflow [ 55859 ]
          tmarshall Trevor Marshall made changes -
          Workflow New SPR Workflow [ 55859 ] SPR Workflow [ 65291 ]

            People

            • Assignee:
              cbeams Chris Beams
              Reporter:
              eberhardwolff Eberhard Wolff
              Last updater:
              Sylvain LAURENT
            • Votes:
              45 Vote for this issue
              Watchers:
              45 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 47 weeks ago

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 3.5h
                3.5h