Skip to content

No longer iterate over all existing facts - #157

Merged
Korbik merged 3 commits into
eclipse-biscuit:mainfrom
saoirse-a:saoirse/improve-fact-streaming
Nov 21, 2026
Merged

Korbik merged 3 commits into
eclipse-biscuit:mainfrom
saoirse-a:saoirse/improve-fact-streaming

Conversation

@saoirse-a

Copy link
Copy Markdown
Contributor

Prior to this commit, looking up facts to support a predicate had to iterate every fact in the world. This change makes fact lookup return a stream of facts that match the predicate's name and arity in constant time by storing them in a HashMap.

Prior to this commit, looking up facts to support a predicate had to
iterate every fact in the world. This change makes fact lookup return a
stream of facts that match the predicate's name and arity in constant
time by storing them in a HashMap.

Co-authored-by: Sasha Kobrusev <s_kobrusev@apple.com>
Signed-off-by: Saoirse Aronson <saoirse@apple.com>
Signed-off-by: Clément Delafargue <clement@delafargue.name>
Signed-off-by: Clément Delafargue <clement@delafargue.name>
@Korbik
Korbik merged commit 4dc940c into eclipse-biscuit:main Nov 21, 2026
1 of 2 checks 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.

3 participants