From: Soeren Apel Date: Wed, 8 Feb 2017 17:30:41 +0000 (+0100) Subject: Switch segment storage from single vector to vector of arrays X-Git-Url: http://git.code-monkey.de/?a=commitdiff_plain;h=26a883ede0bcf68d087eda5dd2082890d36c7aef;hp=26a883ede0bcf68d087eda5dd2082890d36c7aef;p=pulseview.git Switch segment storage from single vector to vector of arrays Previously, PV would run out of storage space for the data segments because data was stored in a vector. As a vector allows contiguous access to the underlying data (much like an array), it needs a contiguous section of memory. With incoming data and constant resizing of the vector, the OS at some point can no longer supply such a section of memory, causing PV to abort acquisition. This change fixes this by using several chunks that are never grown in size. Instead, new chunks are allocated and added to the vector as needed. This way, the OS will be able to provide memory until it runs out of system memory. ---