Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-1267

Get metadata of script only once, get input stream lazily

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Scripting Core 2.0.8
    • Scripting Core 2.0.10
    • Scripting
    • None

    Description

      As the DefaultSlingScript might be cached (by the servlet resolver) the various metadata like the script name, script encoding should only be fetched once on creation and not on every use.
      In addition as most script engines don't use the reader to read the script, we should use a lazy input stream

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            cziegeler Carsten Ziegeler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: