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

Make <Entity>#fromXML method lock free

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 8.3
    • Fix Version/s: 9.0-rc-1
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: