The waveform component was being re-rendered while the playhead changed, which is a costly operation because it has to calculate the full svg path data string.
The waveform component was being re-rendered while the playhead changed, which is a costly operation because it has to calculate the full svg path data string.