Skip to content

Commit

Permalink
Revert "Refs #10370 Added reserve back to loadAndAddfrom in MDBox."
Browse files Browse the repository at this point in the history
This reverts commit 54ad8c6. Decided to leave the reserve as previously, as push back should allow for adequate performance in most cases even if another method relying on loadAndAddFrom in MDBox does not call reserveMemoryForLoad first.
  • Loading branch information
ianbush committed Oct 17, 2014
1 parent 54ad8c6 commit 68b05b4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Code/Mantid/Framework/MDEvents/src/MDBox.cpp
Expand Up @@ -934,9 +934,6 @@ namespace MDEvents
std::vector<coord_t> TableData;
FileSaver->loadBlock(TableData,filePosition,nEvents);

// convert loaded events to data;
size_t nCurrentEvents = data.size();
this->data.reserve(nCurrentEvents+nEvents); // if space already reserved, e.g. from MergeMDFiles, this does nothing
// convert data to events appending new events to existing
MDE::dataToEvents(TableData,data,false);

Expand Down

0 comments on commit 68b05b4

Please sign in to comment.