Files
scryer-prolog/src/lib
Markus Triska 24456e9703 remove optional (+)/1 prefix in get_atts/2 and put_atts/2 calls
The (+)/1 prefix in get_atts/2 at line 4219 by itself already causes a
greater than 15% slowdown for the benchmark shown in #1730:

    ?- N #= 2^14,
       time(((between(1, N, _),
              X #\= Y,
              false)
            ; true)).

The performance impact is not a good reason to remove the optional
(+)/1 prefix! Performance issues should be addressed at the root, in
this case get_atts/2 (#1962). We should never manually work around
performance issues in built-in predicates.

In contrast, readability is a good argument, and I find the calls
slightly easier to read without the optional (+)/1 prefix.

The prefix is now consistently omitted when possible.
2023-08-22 21:52:55 +02:00
..
2023-06-29 23:43:37 +02:00
2023-01-19 21:18:40 +01:00
2023-04-23 09:23:00 +02:00
2023-01-29 22:36:16 +01:00
2023-02-28 22:09:35 +01:00
2023-01-19 21:15:25 +01:00
2023-01-22 17:45:50 +01:00
2023-01-19 21:15:25 +01:00
2023-01-19 21:15:25 +01:00
2022-10-26 23:36:07 -06:00
2023-01-19 21:15:25 +01:00
2023-01-19 21:15:25 +01:00