#4366: sys.path is searched ("stat"ed) for *.pyx-files insanely often
-------------------------+--------------------------------------------------
 Reporter:  GeorgSWeber  |        Owner:  GeorgSWeber
     Type:  defect       |       Status:  assigned   
 Priority:  major        |    Milestone:  sage-3.2.1 
Component:  coercion     |   Resolution:             
 Keywords:               |  
-------------------------+--------------------------------------------------
Changes (by GeorgSWeber):

  * status:  new => assigned

Comment:

 I know now how to change the code so that when we had before:
 {{{
 sage: time for i in range(10^4): float(1)/2
 CPU times: user 17.72 s, sys: 13.44 s, total: 31.16 s
 Wall time: 31.20 s
 }}}
 then after the changes we get:
 {{{
 sage: time for i in range(10^4): float(1)/2
 CPU times: user 0.37 s, sys: 0.00 s, total: 0.37 s
 Wall time: 0.37 s
 }}}
 which is quite impressive, I think (the sys time is used up only by these
 insanely many calls to "stat")!

 Essentially all one has to do is not to call "sys.exc_info()" in
 "_record_exception" (file: sage/structure/coerce.pyx) unless you really
 want to do so. But to fix that nicely (e.g. not leaving a broken doctest)
 will take me another evening or two.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4366#comment:2>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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