#9537: trial_division in Sage is really slow
--------------------------------+-------------------------------------------
   Reporter:  was               |       Owner:  AlexGhitza
       Type:  enhancement       |      Status:  new       
   Priority:  minor             |   Milestone:  sage-4.5.1
  Component:  basic arithmetic  |    Keywords:            
     Author:                    |    Upstream:  N/A       
   Reviewer:                    |      Merged:            
Work_issues:                    |  
--------------------------------+-------------------------------------------
 See my talk:
   *
 http://wiki.sagemath.org/days24/schedule?action=AttachFile&do=view&target
 =stein-cython.pdf
   * http://sagenb.org/home/pub/2256/

 Basically, this sucks:
 {{{
 sage: n = 20110000038209
 sage: timeit('trial_division(n)')
 125 loops, best of 3: 2.75 ms per loop
 }}}

 Even in pure python one can easily implement this so it runs in about
 650microseconds.  In C, it takes only 6 microseconds!

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9537>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to