Wicket
  1. Wicket
  2. WICKET-5186

Use arrays instead of String concatenation in JavaScript for better performance

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor 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("");

        Activity

        Martin Grigorov created issue -
        Martin Grigorov made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 6.8.0 [ 12324068 ]
        Fix Version/s 7.0 [ 12322958 ]
        Resolution Fixed [ 1 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        41m 8s 1 Martin Grigorov 13/May/13 13:13

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development