On Tue, Mar 18, 2014 at 11:31 AM, Michael Dilmore <[email protected]> wrote: > Hmm.. the head block seems to be slowing down my flow graph considerably. > Without the use of the head block my graph retrieved samples and outputted > them to file very quickly; at a rate in the order of tens of MB per second. > > However, since I have added thread block the graph now takes several minutes > to produce the 32768 samples required. > > Is this part of the trade of using the head block? Do I simply have to live > with the slow speed or am I missing something? > > (FYI My file sink is buffered, not sure if that helps)
No, the head block should absolutely not be slowing your computer down that much. There's just a memcpy and some overhead logic for how many items to return and when to signal DONE to the flowgraph. It's a very inexpensive block. What sample rate are you operating at and one what type of platform (processor, OS, etc)? Tom > On Tuesday, March 18, 2014, Michael Dilmore <[email protected]> wrote: >> >> Wow thank you all for the fast response - it worked perfectly. >> >> Michael
