#11388: Speed regression in #10548
------------------------+---------------------------------------------------
   Reporter:  robertwb  |          Owner:  tbd            
       Type:  defect    |         Status:  needs_info     
   Priority:  critical  |      Milestone:  sage-4.7.1     
  Component:  coercion  |       Keywords:                 
Work_issues:            |       Upstream:  N/A            
   Reviewer:            |         Author:  Robert Bradshaw
     Merged:            |   Dependencies:                 
------------------------+---------------------------------------------------

Comment(by lftabera):

 Ok, let me understand the code. There is a recording of exceptions that
 are very convenient for debugging. The problem is that it produces an
 important performance penalty. This is solved with record_exceptions()
 that controls the attribute _record_exceptions which is the flag that
 controls.

 Just one thing. Each time that record_exceptions is called, the exception
 stack cached is cleared so:

 {{{
 sage: cm = sage.structure.element.get_coercion_model()
 sage: cm.record_exceptions()
 sage: cm._test_exception_stack()
 sage: cm.record_exceptions()
 sage: cm.exception_stack()
 []
 }}}

 Is this the intended behavior? It is trivially seen from the code but I
 think it should be documented.

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