It turns out that:

gfact1 is the fastest if machine-level integers
(int32, int64, etc) are used. This is not surprising.

What is a bit surprising is that gfact3 is the fastest
when GMP integers are used. Note that gfact3 uses
a linear stream to implement a loop. There is a lot of
malloc/free when such a loop is executed. However, this
overhead become negligible once the loop body is not
completely computationally trivial.

On Monday, January 15, 2018 at 2:22:27 PM UTC-5, Raoul Duke wrote:
>
> whichever fits in the cache :-)
>

-- 
You received this message because you are subscribed to the Google Groups 
"ats-lang-users" 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/ats-lang-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ats-lang-users/e62a51a5-3ab5-49f8-a93d-76bbc08e0375%40googlegroups.com.

Reply via email to