Skip to content

Commit

Permalink
Refs #5021 ConvertToMD sped up 109 sec->62 sec
Browse files Browse the repository at this point in the history
for a large-ish event file, by splitting more frequently.
Also refs #4800 parallel binnining in SliceViewer dynamic rebinning
  • Loading branch information
Janik Zikovsky committed Apr 11, 2012
1 parent 917041b commit 26b89c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ namespace MDEvents

// Keep a running total of how many events we've added
eventsAdded += eventsAdding;
if (bc->shouldSplitBoxes(eventsAdded, lastNumBoxes))
if (bc->shouldSplitBoxes(eventsAdded, lastNumBoxes) || (eventsAdded > 1000000))
{
if (DODEBUG) g_log.information() << cputim << ": Added tasks worth " << eventsAdded << " events. WorkspaceIndex " << wi << std::endl;
// Do all the adding tasks
Expand Down
1 change: 1 addition & 0 deletions Code/Mantid/MantidQt/SliceViewer/src/SliceViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1881,6 +1881,7 @@ void SliceViewer::rebinParamsChanged()
alg->setPropertyValue("Translation", "");
alg->setProperty("NormalizeBasisVectors", true);
alg->setProperty("ForceOrthogonal", false);
alg->setProperty("Parallel", true);
alg->setPropertyValue("OutputWorkspace", m_overlayWSName);

// Start asynchronous execution
Expand Down

0 comments on commit 26b89c0

Please sign in to comment.