Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-13806

Make <Entity>#fromXML method lock free

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Duplicate
    • Major
    • None
    • 8.3
    • Old Core
    • None
    • Unknown
    • N/A
    • N/A

    Description

      Especially BaseClass#fromXML which is called each time a document is loaded from the DB.

      The lock come from the fact that BaseClass#fromXML indirectly calls XMLReaderFactory#createXMLReader which is loading resources and classes from the classloader which is not super fast but more importantly lock everyone else from using the classloder.

      Might be the right time to refactor all those method to use Filter module which is based on Stax. We'll have to do it anyway since right now we maintain two different parsers.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: