arduino-libraries / Ethernet

Ethernet Library for Arduino
http://arduino.cc/
259 stars 264 forks source link

Use SPI.transfer(wbuf,rbuf,count) also for read #145

Open jayzakk opened 4 years ago

jayzakk commented 4 years ago

While doing performance tests, I noticed that the special SPI.transfer(writebuf,readbuf,count) is only called for write, but not for read. As this massively speeds up data throughput on supported MCUs, please accept this PR.

Here: Optimized performance on LGT8F-MCUs (Nano/Atmega328p replacement), up to 14.1Mbit/s receive and 10.7Mbit/s send. https://github.com/dbuezas/lgt8fx/wiki/Libraries-support

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.