#9882: slow random_element() for integer mod ring
-------------------------------+-------------------
Reporter: dmharvey | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone:
Component: performance | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
-------------------------------+-------------------
Comment (by mmezzarobba):
Replying to [comment:6 ppurka]:
> With the `//` operator you are actually getting Sage integers, whereas I
was getting Sage rationals with the `/` operator. That explains why the
coercion to `Integers` was taking so much time.
Yes, I noticed that, but I thought you were using rationals on purpose.
What I would like to understand is where the ~2 µs of overhead in the
version using `self(ZZ.random_element(0, self.__order-1))` come from...
--
Ticket URL: <http://trac.sagemath.org/ticket/9882#comment:7>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" 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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.