opt(restore): Sort the buffer before spinning the writeToDisk goroutine (#7984)
Sort the buffer beforehand instead of sorting it in the goroutine used for writing the buffer to disk. The writeToDisk goroutines are throttled and making it expensive causes other goroutines to block. This change significantly improves the restore map phase.
Loading