discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: comparing scalar vs vector items


From: Marcus Müller
Subject: Re: comparing scalar vs vector items
Date: Wed, 23 Sep 2020 19:09:39 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0

exactly that. The compiled code is literally the same. A pointer cast doesn't "cost" anything.

On 9/23/20 5:28 PM, Marcus D. Leech wrote:
On 09/23/2020 04:09 AM, Ali G. Dezfuli wrote:
Hi all,
I'd like to compare two GR blocks in terms of performance (especially throughput) 1- using scalar items together with "set_output_multiple <https://www.gnuradio.org/doc/doxygen/classgr_1_1block.html#a63d67fd758b70c6f2d7b7d4edcec53b3> (int multiple)" at the constructor, and
2- using vector items.
regards,
AGD
For the most part, vectors are just a housekeeping convenience. If your block gets scalar items, and it internally treats them as vectors,
  the cost of "doing stuff with the results" would be the same.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]