I am collecting 16384 double values from a hardware device using a signal processing library. The 16384 values I receive are the output of a low pass filter. I want to down sa
You could try putting each buffer into a dictionary and processing them in a for each. Theoretically this should be faster because the arrays will be processed in parallel. 20ms is pretty fast, why the need for such speed?
var buffers = new Dictionary();
Then process something like this:
var myData = realbuffer.ToArray();
buffers.Add(bufferCount, myData);
if (bufferCount == 10)
{
Parallel.ForEach(buffers, (buffer) =>
{
//process buffer independently
});
}