#4935: is_perfect_power leaks
----------------------+-----------------------------------------------------
 Reporter:  mabshoff  |       Owner:  robertwb
     Type:  defect    |      Status:  new     
 Priority:  major     |   Milestone:  sage-3.3
Component:  memleak   |    Keywords:          
----------------------+-----------------------------------------------------
 I discovered this while playing with #4612.

 This is with the old gmp, i.e. not the new eMPIRe, but that also shows
 roughly the same numbers:
 {{{
 sage: get_memory_usage()
 790.43359375
 sage: time len([a for a in srange(10**5) if not
 (-a^3).is_perfect_power()])
 CPU times: user 0.27 s, sys: 0.03 s, total: 0.30 s
 Wall time: 0.31 s
 24128
 sage: get_memory_usage()
 798.4765625
 sage: time len([a for a in srange(10**6) if not
 (-a^3).is_perfect_power()])
 CPU times: user 2.84 s, sys: 0.27 s, total: 3.12 s
 Wall time: 3.12 s
 241224
 sage: get_memory_usage()
 868.921875
 }}}

 Valgrinding this didn't turn up anything useful. Thoughts?

 Cheers,

 Michael

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