Hi,
Why using SerialUSB1 directly with available(), readBytes(), and write() gives three times faster transmission (12 Mbytes vs 4 Mbytes) compared to Stream* s_port = &SerialUSB1 and then calling s_port->available() and so on? Apart from waiting in a tight loop for SerialUSB1.available(), maybe only three or four such calls are used per 4kByte of data read.
Why using SerialUSB1 directly with available(), readBytes(), and write() gives three times faster transmission (12 Mbytes vs 4 Mbytes) compared to Stream* s_port = &SerialUSB1 and then calling s_port->available() and so on? Apart from waiting in a tight loop for SerialUSB1.available(), maybe only three or four such calls are used per 4kByte of data read.