#6199: Integer * int is slow
-------------------------------+--------------------------------------------
 Reporter:  fredrik.johansson  |         Owner:  somebody                      
     Type:  defect             |        Status:  closed                        
 Priority:  major              |     Milestone:  sage-duplicate/invalid/wontfix
Component:  basic arithmetic   |    Resolution:  wontfix                       
 Keywords:                     |        Author:                                
 Upstream:  N/A                |      Reviewer:                                
   Merged:                     |   Work_issues:                                
-------------------------------+--------------------------------------------
Changes (by craigcitro):

  * status:  new => closed
  * upstream:  => N/A
  * resolution:  => wontfix
  * milestone:  => sage-duplicate/invalid/wontfix


Comment:

 So sadly, I think this is a wontfix. I tested this out, and at the expense
 of some ugly code, we get roughly a factor of 2 speedup -- and that's
 basically the best we can do. The problem is that the coercion model needs
 to look up a cached map to avoid the coercion to `Integer`; looking up
 this map and calling it takes long enough that a factor of 2 is the best
 we can get.

 Fredrik, did you have code that was getting slowed down by this? Would a
 factor of two on this make a big difference for you?

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6199#comment:3>
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