Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-708

Improve performance of DOM2Utils.createElement

XMLWordPrintable

    • Icon: Patch Patch
    • Resolution: Done
    • Icon: Major Major
    • jboss-ws4ee-4.0.4
    • jboss-ws4ee-4.0.3
    • None
    • None

      Each time on of the createElement methods is invoked it calls getOwnerDocument which <i>always</i> creates a new DocumentBuilder.. this takes alot of time.. the attached DOM2Utils caches the DocumentBuilder in a threadlocal (dont know if its threadsafe)..

      this improvement boosted performance of some of the ws-samples under loadtesting

            tdiesler@redhat.com Thomas Diesler
            omatzura Ole Matzura (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: