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

Velocity 1.6 performance is degraded by introduced toString() calls

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6, 1.6.1, 1.6.2
    • 1.6.x, 1.7
    • Engine
    • None
    • Apache Velocity 1.6.2

    Description

      As part of VELOCITY-531, r686428 introduced frequent calls to toString() just to check if toString() != null. If toString() implementations are slightly complex, and very frequently executed, these calls will degrade the site performance. Are they at all necessary? What kind of object would use null as a return value for toString()? Is it possible to remove these toString() calls from the velocity code again?

      Attachments

        Activity

          People

            Unassigned Unassigned
            rydenius Jörgen Rydenius
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: