Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-800

Find a way to cache Velocity "AST"

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 15.8-rc-1
    • 7.0.1
    • Velocity
    • None
    • Unit

    Description

      Building Velocity script is slow especially for the macros so if we could cache it a bit instead of redo it again and again that would be very nice for performances.

      The main difficulty is that the macros are not in the tree generated by RuntimeServices.parse but are stored in the runtime service during the parsing. So we need to hack around Velocity internal to get the macros found during a parsing, put them in some cached object along with the tree and then find a way to inject those macros before executing the tree. (not a problem anymore)

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: