Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4910


Ignore:
Timestamp:
11/23/10 15:06:56 (14 years ago)
Author:
epitzer
Message:

Replace Enumerable.Aggregate with String.Join for faster string concatenation (#1294)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/LogView.cs

    r4412 r4910  
    8181        logTextBox.Enabled = true;
    8282        if (Content.Messages.FirstOrDefault() != null)
    83           logTextBox.Text = Content.Messages.Aggregate((x, y) => x + Environment.NewLine + y);
     83          logTextBox.Text = string.Join(Environment.NewLine, Content.Messages.ToArray());
    8484      }
    8585    }
     
    8989        Invoke(new EventHandler<EventArgs<string>>(Content_MessageAdded), sender, e);
    9090      else {
    91         logTextBox.Text = Content.Messages.Aggregate((x, y) => x + Environment.NewLine + y);
     91        logTextBox.Text = string.Join(Environment.NewLine, Content.Messages.ToArray());
    9292        logTextBox.SelectionStart = logTextBox.Text.Length;
    9393        logTextBox.ScrollToCaret();
Note: See TracChangeset for help on using the changeset viewer.