[PR #1169] anim_rigs: index cross-dictionary joins (ANIM-RIGS-JOIN-INDEX) #1202

Open
opened 2026-11-26 20:20:26 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1169
Author: @Taffyyy-ops
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: perf/anim-rigs-join-index


📝 Commits (1)

  • 08470ab anim_rigs: index cross-dictionary joins (ANIM-RIGS-JOIN-INDEX)

📊 Changes

2 files changed (+69 additions, -1 deletions)

View changed files

➕ tests/test_anim_rigs_join_index.py (+66 -0)
📝 tools/anim_rigs.py (+3 -1)

📄 Description

Item ID: ANIM-RIGS-JOIN-INDEX

Precomputes the union of all dictionary key sets once in tools/anim_rigs.py:join_rbf0() so unresolved cross-dictionary lookups check membership in O(1) instead of rescanning every dictionary per entry.

Changes

  • tools/anim_rigs.py (join_rbf0): Computes all_keys = set().union(*keys.values()) if keys else set() once and replaces any(h in k for k in keys.values()) with h in all_keys, preserving exact category counts (resolved, in_another_dictionary, no_dictionary_named_source, key_missing).
  • tests/test_anim_rigs_join_index.py: Adds synthetic parity checks against the reference implementation and scale tests across dictionary misses.

Verification

  • AI-assisted; synthetic tests only, no game data (python -I scripts/check_no_game_data.py).

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1169 **Author:** [@Taffyyy-ops](https://github.com/Taffyyy-ops) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `perf/anim-rigs-join-index` --- ### 📝 Commits (1) - [`08470ab`](https://github.com/ubiquitarianism/leonida/commit/08470ab71f2346bcb9963b23c1474ceed737fef5) anim_rigs: index cross-dictionary joins (ANIM-RIGS-JOIN-INDEX) ### 📊 Changes **2 files changed** (+69 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `tests/test_anim_rigs_join_index.py` (+66 -0) 📝 `tools/anim_rigs.py` (+3 -1) </details> ### 📄 Description Item ID: `ANIM-RIGS-JOIN-INDEX` Precomputes the union of all dictionary key sets once in `tools/anim_rigs.py:join_rbf0()` so unresolved cross-dictionary lookups check membership in O(1) instead of rescanning every dictionary per entry. ### Changes - **`tools/anim_rigs.py` (`join_rbf0`):** Computes `all_keys = set().union(*keys.values()) if keys else set()` once and replaces `any(h in k for k in keys.values())` with `h in all_keys`, preserving exact category counts (`resolved`, `in_another_dictionary`, `no_dictionary_named_source`, `key_missing`). - **`tests/test_anim_rigs_join_index.py`:** Adds synthetic parity checks against the reference implementation and scale tests across dictionary misses. ### Verification - AI-assisted; synthetic tests only, no game data (`python -I scripts/check_no_game_data.py`). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1202
No description provided.