Free cookie consent management tool by TermsFeed Policy Generator

Ticket #2270: runcollectionview.patch

File runcollectionview.patch, 2.4 KB (added by abeham, 9 years ago)

Fixes some performance issues for bubble chart and table

  • HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs

     
    122122      dataGridView.ReadOnly = ReadOnly;
    123123    }
    124124
    125     private void UpdateData() {
     125    protected virtual void UpdateData() {
    126126      rowsTextBox.Text = Content.Rows.ToString();
    127127      rowsTextBox.Enabled = true;
    128128      columnsTextBox.Text = Content.Columns.ToString();
  • HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBubbleChartView.cs

     
    261261    }
    262262
    263263    private void Content_Reset(object sender, EventArgs e) {
     264      if (suppressUpdates) return;
    264265      if (InvokeRequired)
    265266        Invoke(new EventHandler(Content_Reset), sender, e);
    266267      else {
  • HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionTableView.cs

     
    116116      Caption = Content != null ? Content.OptimizerName + " Table" : ViewAttribute.GetViewName(GetType());
    117117    }
    118118
     119    protected override void UpdateData() {
     120      if (suppressUpdates) return;
     121      base.UpdateData();
     122    }
     123
    119124    protected override void UpdateColumnHeaders() {
    120125      HashSet<string> visibleColumnNames = new HashSet<string>(dataGridView.Columns.OfType<DataGridViewColumn>()
    121126       .Where(c => c.Visible && !string.IsNullOrEmpty(c.HeaderText)).Select(c => c.HeaderText));
     
    144149        Invoke(new EventHandler(Content_UpdateOfRunsInProgressChanged), sender, e);
    145150      else {
    146151        suppressUpdates = Content.UpdateOfRunsInProgress;
    147         if (!suppressUpdates) UpdateRowAttributes();
     152        if (!suppressUpdates) {
     153          UpdateRowAttributes();
     154          UpdateData();
     155        }
    148156      }
    149157    }
    150158