-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(db): Create single task that executes DiagnosticMessage queries
This commit introduces an executor task that handles queries coming from a queue. Compared to the old approach that easily generated >100k tasks per scan, this approach is way more memory friendly. What adds to this is that previously the tasks were generated in a different event loop than the one they were awaited in, leading to dangling objects that persisted until the python interpreter closed. This commit removes these memory leaks which becomes extremely important when scanners are used "as lib".
- Loading branch information
1 parent
02190ee
commit 8934009
Showing
3 changed files
with
74 additions
and
35 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