Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2323

InstanceImpl - do not prefetch all resolved beans for Instance<Object> with no qualifiers

    Details

      Description

      InstanceImpl currently resolves all the matching beans beforehand. This is very often unnecessary because users rarely use Instance<Object>, e.g. to iterate over all accessible beans (might be a huge set and although we usually cache the resolution there are other "expensive" operations).

      This could improve the performance of org.jboss.weld.manager.api.WeldManager.instance() and javax.enterprise.inject.spi.BeanManager.createInstance() respectively.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mkouba Martin Kouba
                  Reporter:
                  mkouba Martin Kouba
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: