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.