That's probably just the overhead in the HAL code while it handles completion of the previous byte, fetches the next byte, and starts transmission of that next byte.
@pass3master wrote:
Is it possible to change this interval time?
What compiler optimisation level are you currently using? What happens if you increase it?
Have you tried using DMA?
Otherwise, optimise the code by hand.
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.