On 09/19/2010 08:45 PM, dmharvey wrote:
> On Sep 19, 9:28 pm, dmharvey <dmhar...@cims.nyu.edu> wrote:
>> Curiouser and curiouser.... it has nothing to do with matrices. Even
>> doing this causes the problem:
>>
>> K = Integers(13^10)
>> M = [[K.random_element() for j in range(200)] for k in range(200)]
>> save(M, "thing.sobj")
> 
> I have just discovered the following remarkable
> 
> THEOREM:
> 
> The code
> 
> K = Integers(N)
> M = [[K.random_element() for j in range(200)] for k in range(200)]
> save(M, "thing.sobj")
> 
> leads to the bug IF AND ONLY IF N >= 500.
> 
> Moreover, it is about 50x faster to load the matrix if N < 500.
> 
> WTF??????

Possibly very naive question: What happens to the times if you disable
automatic garbage collection:

import gc
gc.disable()

?

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to