Skip to content

CORE-55: stop building per-call gamla compositions in neighbors/run_on_kg_and_node - #49

Merged
LawlAoux merged 3 commits into
mainfrom
CORE-55-use-gamla-fast-coroutine-check
Aug 2, 2026
Merged

LawlAoux merged 3 commits into
mainfrom
CORE-55-use-gamla-fast-coroutine-check

Conversation

@LawlAoux

@LawlAoux LawlAoux commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

neighbors/neighbors_reversed (querying_raw.py) rebuilt a gamla.pipe(..., gamla.map(...), frozenset) composition on every KG query — replaced with a plain frozenset(map(...)) call. storage.run_on_kg_and_node's inner closure rebuilt run_on_kg_and_node_any_output(f) on every node lookup even though f never changes across calls — hoisted it outside inner and dropped the gamla.pipe/gamla.map construction for a plain generator expression. Both verified byte-identical to the original output (existing + ad-hoc checks).

@LawlAoux LawlAoux self-assigned this Jul 30, 2026
@LawlAoux
LawlAoux merged commit d5c8d96 into main Aug 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants