Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-1382

Class javax.enterprise.inject.spi.BeanManager not cached on start

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.23
    • Context and Scopes
    • None

    Description

      Class javax.enterprise.inject.spi.BeanManager generates a lot of full lookups (tens of thousands) in InjectionResolver.implResolveByType() when OWB is starting even in simple project. It looks that OWB starts could be improved by 10-20% by introducing caching. I'm trying  to put cache in BeanImpl as is shown there:

       

      https://github.com/skybber/pf-expensive-converter/blob/main/addhoc/org/apache/webbeans/container/InjectionResolver.java#L491

       

      it skips expensive iteration over all beans and improves start of OWB, in my case from 10.5s to 9.9s. Probably there is better way how to do it, since the problem is only with the class javax.enterprise.inject.spi.BeanManager.

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            skybber Vladimir Dvorak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: