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

Use arrays instead of String concatenation in JavaScript for better performance

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    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 Tzvetanov Grigorov
              Reporter:
              mgrigorov Martin Tzvetanov Grigorov

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment