(1) -> l := expand(1..10^5);
Type: List(Integer)
(2) -> )time on
(2) -> sort(l);
Type: List(Integer)
Time: 0.97 (EV) + 0.02 (OT) = 0.98 sec
(3) -> sort(l);
Type: List(Integer)
Time: 0.02 (EV) = 0.02 sec
That's because by default 'sort' uses '<=', in the first
call, the function selection '<=$Integer' get called
10^5 times.
This function selection should be cached after the
first time call.
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.