Skip to content

Commit

Permalink
Seems clear() is about 5% faster than creating a new vector
Browse files Browse the repository at this point in the history
in this one instance.
  • Loading branch information
Jeremy Johnstone committed Sep 27, 2009
1 parent 930f055 commit 1d0c16d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sim2Virus/Parser/Reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void read_input_data(MATRIX& dataset, char const *filename) {
}
if(!row.empty()) {
table.push_back(row);
row = ROW();
row.clear();
}
goto loop_end;
case 48:
Expand Down

0 comments on commit 1d0c16d

Please sign in to comment.