Re: [sage-devel] Re: Memory leak in poset dimension()

2018-12-03 Thread Dima Pasechnik
let's move this to #26795:
see https://trac.sagemath.org/ticket/26795#comment:19

On Mon, Dec 3, 2018 at 9:34 AM Jori Mäntysalo  wrote:
>
> On Mon, 3 Dec 2018, Dima Pasechnik wrote:
>
> > please post the test you use.
>
> import gc
>
> i = 0
> for P in Posets(8):
>  if i % 1000 == 0:
>  gc.collect()
>  print get_memory_usage()
>  i += 1
>  _ = P.dimension()
>
> --
> Jori Mäntysalo

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: Memory leak in poset dimension()

2018-12-03 Thread Jori Mäntysalo

On Mon, 3 Dec 2018, Dima Pasechnik wrote:


please post the test you use.


import gc

i = 0
for P in Posets(8):
if i % 1000 == 0:
gc.collect()
print get_memory_usage()
i += 1
_ = P.dimension()

--
Jori Mäntysalo

Re: [sage-devel] Re: Memory leak in poset dimension()

2018-12-03 Thread Dima Pasechnik
please post the test you use.
I don't see anything interesting there...

On Mon, Dec 3, 2018 at 7:39 AM Jori Mäntysalo  wrote:
>
> On Sun, 2 Dec 2018, Dima Pasechnik wrote:
>
> > do you still see it with https://trac.sagemath.org/ticket/26795 ?
>
> Yes, it is still there.
>
> --
> Jori Mäntysalo

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] Re: Memory leak in poset dimension()

2018-12-02 Thread Jori Mäntysalo

On Sun, 2 Dec 2018, Dima Pasechnik wrote:


do you still see it with https://trac.sagemath.org/ticket/26795 ?


Yes, it is still there.

--
Jori Mäntysalo

[sage-devel] Re: Memory leak in poset dimension()

2018-12-02 Thread Dima Pasechnik
do you still see it with https://trac.sagemath.org/ticket/26795 ?

On Saturday, December 1, 2018 at 7:11:00 PM UTC, Jori Mäntysalo wrote:
>
> This shows a leak: 
>
> i = 0 
> for P in Posets(8): 
>  if i % 1000 == 0: 
>  gc.collect() 
>  print get_memory_usage() 
>  i += 1 
>  _ = P.dimension() 
>
> To compare, width() and height() does not seem to leak. 
>
> -- 
> Jori Mäntysalo 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.