Dear Sage team,

I have two cdef'd classes (lets call them A and B). They have some
cdef'd attributes that should be harmless, namely of type int or list
or dict. The entries of these lists/dicts may be objects of class A
though.

Let me emphasize that A and B do not rely on any external (wrapped) C-
Types. They are entirely built from int, list, dict, object. In
particular, I am not doing any nasty memory allocation.

I understood that Cython knows how to allocate and deallocate cdef'd
attributes of type int, list, dict, object etc. Hence, I expected that
I do not need to provide __del__ or __dealloc__ methods for A and B.
And I expected that it is virtually impossible to produce a memory
leak in such setting.

Nevertheless, get_memory_usage() shows that
   creating an object of class B,
   doing a computation "Result = B(...)", and
   deleting B
results in an increased memory usage of 2.57MB per run.

What tools do you recommend to tracking that memory leak down?

Yours
       Simon
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to