From c077a054c0543eb5dc82678e385a93ac113477b0 Mon Sep 17 00:00:00 2001 From: maldwg Date: Tue, 18 Aug 2026 12:57:23 +0200 Subject: [PATCH 1/2] use half the window size for domainator to test speedup options --- .pre-commit-config.yaml | 3 +-- src/detector/plugins/domainator_attributor.py | 2 +- src/detector/plugins/domainator_detector.py | 5 +---- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c174cac1..93acc21d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,9 +1,8 @@ repos: - repo: https://github.com/psf/black - rev: 24.4.2 + rev: 25.11.0 hooks: - id: black - language_version: python3.11 - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: diff --git a/src/detector/plugins/domainator_attributor.py b/src/detector/plugins/domainator_attributor.py index 80be9dbc..a2fb0566 100644 --- a/src/detector/plugins/domainator_attributor.py +++ b/src/detector/plugins/domainator_attributor.py @@ -122,5 +122,5 @@ def detect(self): } self.warnings.append(warning) - if len(self.message_queues[message_domain]) >= 10: + if len(self.message_queues[message_domain]) >= 5: del self.message_queues[message_domain][0] diff --git a/src/detector/plugins/domainator_detector.py b/src/detector/plugins/domainator_detector.py index 5937ccd8..54221117 100644 --- a/src/detector/plugins/domainator_detector.py +++ b/src/detector/plugins/domainator_detector.py @@ -1,9 +1,6 @@ from src.detector.detector import DetectorBase import numpy as np from collections import defaultdict -import itertools -import pylcs -import Levenshtein from src.base.log_config import get_logger from src.detector.plugins.domainator_utils import ( @@ -100,6 +97,6 @@ def detect(self): } self.warnings.append(warning) - if len(self.message_queues[message_domain]) >= 10: + if len(self.message_queues[message_domain]) >= 5: del self.message_queues[message_domain][0] logger.debug(f"Domainator Message queue length: {len(self.message_queues)}") From 972d6535dfaae7c8939fce919209f8798de72e45 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 18 Aug 2026 11:01:07 +0000 Subject: [PATCH 2/2] chore: bump version to v2.3.4-dev [skip ci] --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 20dd6322..84b787eb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v2.3.4 +v2.3.4-dev