Skip to content
Snippets Groups Projects
Commit ab68e6f7 authored by Simon Oehrl's avatar Simon Oehrl
Browse files

Preallocate buffer for spikes

parent 1bfb7d42
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ DataStorage::DataStorage(
// spikes_neurons_dataset_ =
// h5_file_->createDataSet("spikes/neurons", H5::PredType::NATIVE_UINT64,
// spikes_data_space, spikes_set_properties_);
buffered_spikes_.reserve(32 * 1024 * 1024 / sizeof(Spike)); // Reserve 32mb
}
void DataStorage::AddSpike(double simulation_time, std::uint64_t gid) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment