pothosware / SoapyPlutoSDR

Soapy SDR plugin for PlutoSDR
https://github.com/pothosware/SoapyPlutoSDR/wiki
GNU Lesser General Public License v2.1
53 stars 22 forks source link

Add native PlutoSDR format fast copy #11

Closed zuckschwerdt closed 5 years ago

zuckschwerdt commented 5 years ago

Adds an optimization for a special case: single channel, CS16 format, same endianess (both for RX and TX). This is the usual default format on native PlutoSDR hardware, also with SoapyRemote and reduces the cpu usage by a factor of 4 (20% utilization to 5% utilization) since we can just memcpy when iio_channel_convert() / iio_channel_convert_inverse() are nops. A DMA implementation can then go on top of this.

guruofquality commented 5 years ago

Seemed like a good idea. Was there an issue?

zuckschwerdt commented 5 years ago

Sorry, do you mean another Github ticket or a bug like issue in the hardware/software that brought me to this? Feel free to revert this addition if it is controversial.

guruofquality commented 5 years ago

Oh no, never-mind, I thought you closed it and did not merge. Good work, carry on!