When seeking to the beginning of a stream it isn't necessary to do the full bisect search. Instead, the beginning of the first valid page that was found can be used.
This makes a noticeable performance difference in an online setting where each read of the file requires a network request. With this patch rewinding a track to the beginning is mus faster.
This situation arises in the librespot Spotify client.
When seeking to the beginning of a stream it isn't necessary to do the full bisect search. Instead, the beginning of the first valid page that was found can be used.
This makes a noticeable performance difference in an online setting where each read of the file requires a network request. With this patch rewinding a track to the beginning is mus faster.
This situation arises in the librespot Spotify client.