firmware icon indicating copy to clipboard operation
firmware copied to clipboard

SPI transactions in radiolib are super suboptimal

Open geeksville opened this issue 4 years ago • 1 comments

while working on pinetab support I noticed that the radio lib spi operations are super inefficent. Both for regular register operations and bulk packet read/writes.

The fix is to use the more modern two buf implementations of transfer() provided on the nrf52/esp32 (rather than single byte transfers). This will let the hardware SPI controllers do more of the work. This would also prevent the linux port from doing lots of extra USB operations/kernel entries.

geeksville avatar Dec 31 '20 06:12 geeksville

@caveman99 do you have any ideas on this one? I wonder if RadioLib updates might have possibly optimized the SPI transactions since the issue was created.

thebentern avatar Apr 26 '22 14:04 thebentern

closed in favor of #1374

garthvh avatar Sep 12 '22 14:09 garthvh