performance.algorithmic

Inefficient data structure usage

Linear membership checks or key projections should be reviewed for more suitable lookup structures.

#Metadata

#Why it matters

Repeated array scans or `Object.keys(...).includes(...)` patterns are often avoidable with `Set`, `Map`, or direct key checks.

#Remediation

Replace repeated array scans with `Set` or `Map`, or use direct key existence checks instead of projecting keys first.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.performance.inefficient-data-structure-usage.rule.yaml.