Skip to content
Critiq Docs

Search docs

Search documentation pages and rules

performance.allocation

Avoid no regex construction in loop

Performance hygiene signal for python sources.

#Metadata

Rule ID
py.performance.no-regex-construction-in-loop
Severity
medium
Confidence
0.66
Languages
python
Presets
strict
Stability
experimental
Applies to
block
Tags
performance, python, rules-catalog

#Why it matters

Performance hygiene signal for python sources.

#Remediation

Refactor this path to reduce avoidable runtime overhead.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/python/py.performance.no-regex-construction-in-loop.rule.yaml.