Excessive cloning of environment for each context/dircontext call

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.3.0
    • Affects Version/s: 1.3.0
    • Component/s: core-libs
    • kestrel
    • sparc
    • solaris_2.6
    • Verified

      The toolkit (PartialCompositeContext) calls getEnvironment()
      at the start of each context method. Since the LDAP provider
      clones the environment before returning it, this imposes
      an extra copy of the environment Hashtable each time
      you invoke a context method. That's bad for performance.

      There are also a few places where getEnvironment() is still not
      conforming to spec and not returning a clone:
      HierMemDirCtx
      GenericURLContext
      RegistryContext
      CNCtx

      Also, in PartialCompositeContext, there are 3 constants that are
      being declared as protected final. Add 'static' modifier to them:
          protected final int _PARTIAL = 1;
          protected final int _COMPONENT = 2;
          protected final int _ATOMIC = 3;


      rosanna.lee@eng 1999-10-20

            Assignee:
            Rosanna Lee (Inactive)
            Reporter:
            Rosanna Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: