Skip to content
This repository was archived by the owner on Oct 11, 2026. It is now read-only.

perf(analytics): speed up EI parity comparison - #110

Merged
Roddygithub merged 1 commit into
mainfrom
fix/ei-parity-performance
Aug 1, 2026
Merged

Roddygithub merged 1 commit into
mainfrom
fix/ei-parity-performance

Conversation

@Roddygithub

Copy link
Copy Markdown
Owner

Summary

  • pre-index EI comparison event categories to avoid rescanning the full event list per target
  • pre-index rotation lookup data for swaps, activations, spawns, and nearby event windows
  • keeps parity logic unchanged; this is a performance-only patch

Verification

  • uv run ruff check libs/gw2_analytics/src/gw2_analytics/ei_compare.py libs/gw2_analytics/src/gw2_analytics/rotation.py
  • uv run ruff format --check libs/gw2_analytics/src/gw2_analytics/ei_compare.py libs/gw2_analytics/src/gw2_analytics/rotation.py
  • uv run pytest libs/gw2_analytics/tests/test_ei_compare.py libs/gw2_analytics/tests/test_rotation.py -q
  • uv run mypy libs --no-incremental
  • 10-log EI parity corpus completes without timeout (~1.0-1.5s/log)

Signed-off-by: Roland Salardon <r.salardon@gmail.com>
@Roddygithub
Roddygithub force-pushed the fix/ei-parity-performance branch from 3f646bf to 0865020 Compare August 1, 2026 16:39
@Roddygithub
Roddygithub merged commit ca63210 into main Aug 1, 2026
11 checks passed
@Roddygithub
Roddygithub deleted the fix/ei-parity-performance branch August 1, 2026 16:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant