javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-1536

Performance problem in ApplicationImpl.createComponent(FacesContext context, Resource componentResource)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.0.3-b01
    • Component/s: facelets
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      1,536

      Description

      The following method has a performance problem (build 2.0.2-b10):

      public UIComponent createComponent(FacesContext context, Resource
      componentResource) throws FacesException

      In line 976 the class loader is called, which is quite expensive. If you make
      heavy use of composite components, the performance decreases dramatically under
      heavy load because the class loader is synchronized.

      You should remember that you already looked for a class and didn't find it. You
      could simply map an inner class (e.g. ComponentNotFound) to the class name in
      the component map.

        Activity

        Frank Caputo created issue -
        kenaiadmin made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 1536 30802
        Manfred Riem made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Ryan Lubke
            Reporter:
            Frank Caputo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: