-
Notifications
You must be signed in to change notification settings - Fork 162
Open
Description
The built-in findall/3 is used to implement setof/3 incurring a lot of unnecessary overheads
- Duplicate leaf answers are not detected
- The precise order of answers is not required, they will be sorted anyway
- Identical ground subterms between leaf answers are not shared
- Non-ground subterms between leaf answers that are variants of each other and that will become identical directly after
findall/3are not shared
Hashing may now be possible (1 and 2).
Ideally, also hashing of all identical ground subterms (3).
All of this would be for the benefit of setof/3 and (to a lesser degree) of bagof/3. (#3211)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels