From d4b9eebaf00913efd758cd2a0d0097c0f0f0d1bb Mon Sep 17 00:00:00 2001 From: Dmitriy Sobolev Date: Mon, 20 Jan 2025 22:25:02 +0000 Subject: [PATCH] Add a comment --- .github/scripts/job_summary.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/scripts/job_summary.py b/.github/scripts/job_summary.py index 5e5a987cf01..4ad2928d67c 100755 --- a/.github/scripts/job_summary.py +++ b/.github/scripts/job_summary.py @@ -46,6 +46,8 @@ def generate_warning_table(build_log_content): for match in warning_regex.finditer(build_log_content) ) warning_histogram = Counter(warnings) + + # The slowest part: optimize if needed (takes ~3sec for 100K lines) warning_examples = { w: re.search(rf".*{w}.*", build_log_content).group(0) for w in warning_histogram