Uploaded image for project: 'Shindig'
  1. Shindig
  2. SHINDIG-1336

Have MutableContent allocate "pipelinedData" (of type java.util.Map) lazily instead of eagerly

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0-RC2
    • Java
    • None

    Description

      The constructors of org.apache.shindig.gadgets.rewrite.MutableContent eagerly allocate "pipelinedData" (of type java.util.Map), which may never be used. MutableContent should allocate its "pipelinedData" field lazily, when addPipelinedData is called for the first time, to avoid unnecessary memory consumption.

      Attachments

        1. diffs.txt
          2 kB
          Jan Luehe

        Activity

          People

            Unassigned Unassigned
            jluehe Jan Luehe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: