-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix linear scan in
numFilteredPending
with partial per-subject info…
… state If the per-subject info didn't have a correct first block (which is possible as it is populated lazily), then `LoadNextMsg` could end up making a very expensive call through to `numFilteredPending` which would do a linear scan of potentially many blocks. Signed-off-by: Neil Twigg <[email protected]>
- Loading branch information
1 parent
f263d75
commit 1d34284
Showing
3 changed files
with
80 additions
and
17 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
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
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