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

Find a way to cache Velocity "AST"

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 7.0.1
    • Fix Version/s: None
    • Component/s: Velocity
    • Labels:
      None
    • Similar issues:

      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

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

                Dates

                Created:
                Updated: