]> sigrok.org Git - pulseview.git/commit
Preallocate memory before samples are received.
authorDaniel King <redacted>
Thu, 13 Feb 2014 20:16:17 +0000 (20:16 +0000)
committerJoel Holdsworth <redacted>
Fri, 14 Feb 2014 17:31:51 +0000 (17:31 +0000)
commit27d7c96b57d967edd8bcde9bb5570d573a0ef474
tree24c6c76c602fbdc496c674f9870702567c7fda2f
parent8283c116efc6af0a1adc583be38ab711aa9f2cbb
Preallocate memory before samples are received.

Preallocating memory for samples when a capture is started improves performance during the capture, as realloc() is called only once.
pv/data/analogsnapshot.cpp
pv/data/analogsnapshot.h
pv/data/logicsnapshot.cpp
pv/data/logicsnapshot.h
pv/data/snapshot.cpp
pv/data/snapshot.h
pv/devinst.cpp
pv/devinst.h
pv/sigsession.cpp