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

JSONRenderer.quote should not use synchronized StringWriter with unspecified length

    XMLWordPrintableJSON

Details

    Description

      StringWriter uses a StringBuffer internally which is synchronized. By using a StringBuilder instead and initializing it with the estimated size, this methods becomes 5 times faster (in my real test case).

      Attachments

        Activity

          People

            rombert Robert Munteanu
            joelrich Joel Richard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: