Skip to content

perf(tech-detect): inline-loader detectors from the Wappalyzer port add ~22% detection time (loose gate literals) #2428

In progress

Description

@nc9

The batch-1 port from the MIT Wappalyzer snapshot (#2422, PR #2425) adds inline-loader detectors. Its review measured +22% tech-detect time on 210 homepages (14.7 s → 18.0 s total). Two causes stood out:

  • qualtrics: its gate literal qualtrics.com also appears in inline JSON, so the loader pattern runs on large inline blobs. It added about 270 ms on one 1.2 MB page. The cost is linear, not ReDoS.
  • awin: the gate literal dwin matches loadWindow case-insensitively, so the pattern runs on most pages for nothing.

Acceptance Criteria

  • Each inline-loader detector's gate literal is specific enough that the pattern only runs when the vendor's loader can plausibly be present (e.g. qualtrics gates on its loader snippet, not the bare domain; awin gates on a vendor-specific string).
  • Tech-detect time on a fixed sample of 200 or more homepages is within 5% of the pre-feat(tech-detect): port batch 1 from the MIT-licensed Wappalyzer snapshot (#2422) #2425 baseline, with before and after numbers in the PR.
  • Detection results on that sample are unchanged (the same detections before and after the gate change).

Activity

  1. added
    size: S
    performance
    engine
    in-progress
    on Nov 28, 2026
  2. self-assigned this
    on Nov 28, 2026
  3. removed
    in-progress
    on Nov 28, 2026
  4. removed their assignment
    on Nov 28, 2026
  5. added
    enhancement
    on Nov 28, 2026
  6. added theissue type on Nov 28, 2026
  7. added
    in-progress
    on Nov 28, 2026
  8. self-assigned this
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

engineenhancementin-progressperformancesize: S

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions