SPI not working with MBED (was: Performance of XIAO with Sharp Memory Display)

I ran an OLED(SSD1306) instead of a SharpMemDisplay to check the waveforms. Both clock frequencies are 8MHz, but the interval between one data transfer and the next is 20uS for mbed, while non-mbed is 6uS. The throughput is very different. The mbed’s SPI has poor performance.