~apinheiro/unity/bug844927

« back to all changes in this revision

Viewing changes to tests/TestResultView.cpp

  • Committer: Gord Allott
  • Date: 2011-09-08 11:08:57 UTC
  • mfrom: (1482.1.9 dash-speedups)
  • Revision ID: gord.allott@canonical.com-20110908110857-xs2sl4fcpcixz125
Merging in my branch that speeds up the dash even further, we now only render the results that are on the screen and only load the icons that are visible, reducing the memory footprint 

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
    iters_.push_back(iter);
89
89
  }
90
90
 
 
91
  DeeModelTag* tag = dee_model_register_tag(model_, NULL);
 
92
 
91
93
  LOG_DEBUG(logger) << "took " << (g_get_monotonic_time () - time_start) / 1000000.0f << " seconds to init dee";
92
94
  time_start = g_get_monotonic_time();
93
95
 
103
105
  std::vector<DeeModelIter*>::iterator it;
104
106
  for (it = iters_.begin(); it != iters_.end(); it++)
105
107
  {
106
 
    unity::dash::Result* result = new unity::dash::Result(model_, (*it), NULL);
 
108
    unity::dash::Result* result = new unity::dash::Result(model_, (*it), tag);
107
109
    result_view->AddResult (*result);
108
110
  }
109
111