On 2017-06-12 07:21, Nils Bruin wrote: > How attached are people to creating deterministic output where none is > warranted? > > Currently, there is a "sort" routine in f.roots which creates a 60% > overhead: > > sage: C=ComplexField(100) > sage: %timeit f.roots(multiplicities=False) > 1000 loops, best of 3: 703 µs per loop > sage: %timeit [C(a) for a in F.polroots(precision=C.prec())] > The slowest run took 4.22 times longer than the fastest. This could mean > that an intermediate result is being cached. > 1000 loops, best of 3: 432 µs per loop > > Is it really worth that much to enforce output to be in some arbitrary > order?
If not sorted, should the output data structure be a Python set instead of a list? -- You received this message because you are subscribed to the Google Groups "sage-devel" 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/sage-devel. For more options, visit https://groups.google.com/d/optout.
