Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-833

ASTStringLiteral.interpolateimage consumes large amounts of memory [PATCH]

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.7
    • 2.0
    • Engine

    Description

      interpolateimage is only used in the init method of ASTStringLiteral and thus should not be an instance member of this class.

      The assignment

      interpolateimage = image + " ";

      is really bad since it allocates a new string objects that are responsible for a great part of the objects' retained heap size.

      Attachments

        1. VELOCITY-833.patch
          3 kB
          Jarkko Viinamäki

        Issue Links

          Activity

            People

              cbrisson Claude Brisson
              veita Alexander Veit
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: