Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5186

Use arrays instead of String concatenation in JavaScript for better performance

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.7.0
    • Fix Version/s: 6.8.0, 7.0.0-M1
    • Component/s: wicket
    • Labels:
      None

      Description

      Some browsers are slow when concatenating strings.
      A recommended way is to use arrays instead:

      var result = [];
      result.push("something");
      var string = result.join("");

        Attachments

          Activity

            People

            • Assignee:
              mgrigorov Martin Grigorov
              Reporter:
              mgrigorov Martin Grigorov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: