-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix performance regression introduced during reader refactor (#3170
) In #2913 we added an initialization routine to the scheduler. Unfortunately, this caused a problem. It put `schedule_ranges` behind an await which means that we wouldn't schedule ranges for all files in a scan immediately. Instead, we wouldn't begin scheduling file X until we had reached nearly the last batch of file X-1. This introduced stuttering in the read path and had a significant effect on performance. The fix here moves the initialization into the dedicated scheduler thread and keeps the creation of the scheduler a synchronous task which is actually a bit simpler anyways I think.
- Loading branch information
1 parent
bfd8ec9
commit d196ab8
Showing
1 changed file
with
26 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters