[m-users.] Performance of solutions module
foolkingcrown at gmail.com
Sat Nov 3 06:50:56 AEDT 2018
> Actually, I would advise against doing this. The code of solutions/2 has
> something that cannot be done in pure Mercury: communicating information
> between different branches of a disjunction. It therefore has to use
> even though the interface it is implementing has a pure semantics. This
> but I wouldn't recommend the code to nonexperts.
I did look at the source, and saw this was how it worked.
It's not that it's hard to build the list myself, or make a fold predicate.
that solutions must use special functionality to get the decision points,
it wasn't clear how fast that would be compared with doing the equivalent
myself with standard/public language features.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the users