comparison data/model/test/MockWaveModel.cpp @ 1433:c0f69bddea12 streaming-csv-writer

Already pre-allocated, don't push_back.
author Lucas Thompson <dev@lucas.im>
date Tue, 17 Apr 2018 10:03:49 +0100
parents 54af1e21705c
children a12fd0456f0c
comparison
equal deleted inserted replaced
1432:779a084d7e3d 1433:c0f69bddea12
53 sv_frame_t start, sv_frame_t count) const 53 sv_frame_t start, sv_frame_t count) const
54 { 54 {
55 vector<floatvec_t> data(tochannel - fromchannel + 1); 55 vector<floatvec_t> data(tochannel - fromchannel + 1);
56 56
57 for (int c = fromchannel; c <= tochannel; ++c) { 57 for (int c = fromchannel; c <= tochannel; ++c) {
58 data.push_back(getData(c, start, count)); 58 data[c] = getData(c, start, count);
59 } 59 }
60 60
61 return data; 61 return data;
62 } 62 }
63 63