mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #1169] anim_rigs: index cross-dictionary joins (ANIM-RIGS-JOIN-INDEX) #1202
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1202
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
08470abanim_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-INDEXPrecomputes 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): Computesall_keys = set().union(*keys.values()) if keys else set()once and replacesany(h in k for k in keys.values())withh 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
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.