Re: [sage-devel] Re: Memory leak? Creation of DiGraph slows down.

2015-06-01 Thread Travis Scrimshaw
> Why it doesn't just check if dot2tex has been installed as an optional > package? > Because one also needs an installation of graphviz as well (which is an experimental package, but a system-wide installation is what is recommended and typically used). > > Or should Sage be able to use sy

Re: [sage-devel] Re: Memory leak? Creation of DiGraph slows down.

2015-06-01 Thread Nathann Cohen
> Why it doesn't just check if dot2tex has been installed as an optional > package? > > Or should Sage be able to use system-wide dot2tex also? > > In any case, something should be done. Who will make a ticket? You can. Ticket 18124 was created recently, but it is not immediately related (it may c

Re: [sage-devel] Re: Memory leak? Creation of DiGraph slows down.

2015-06-01 Thread Jori Mäntysalo
On Sat, 30 May 2015, Travis Scrimshaw wrote: So it seems to come from the have_dot2tex() function, in that it tests the installation of dot2tex by executing a dot2tex command. I think the easiest and best solution would be to make have_dot2tex() into a @cached_function. Why it doesn't just che

Re: [sage-devel] Re: Memory leak? Creation of DiGraph slows down.

2015-05-30 Thread Travis Scrimshaw
So it seems to come from the have_dot2tex() function, in that it tests the installation of dot2tex by executing a dot2tex command. I think the easiest and best solution would be to make have_dot2tex() into a @cached_function. Best, Travis On Saturday, May 30, 2015 at 8:23:57 AM UTC-7, Jori Män

Re: [sage-devel] Re: Memory leak? Creation of DiGraph slows down.

2015-05-30 Thread Jori Mäntysalo
On Sat, 30 May 2015, Nathann Cohen wrote: OK, so it's dot2tex (I guess). Somebody wants to test with it installed? Having doc2tex turns a 100ms function into a 30s functions ? O_o I tested this on 6.8beta1 on quite old and slow computer with 32-bit kernel. In this machine the result after

Re: [sage-devel] Re: Memory leak? Creation of DiGraph slows down.

2015-05-30 Thread Nathann Cohen
> OK, so it's dot2tex (I guess). Somebody wants to test with it installed? Having doc2tex turns a 100ms function into a 30s functions ? O_o Nathann -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving

Re: [sage-devel] Re: Memory leak? Creation of DiGraph slows down.

2015-05-29 Thread Jori Mäntysalo
On Fri, 29 May 2015, Nathann Cohen wrote: I did P6=Posets(6).list() and then for 4 time I ran the code you give, and instead of 33s I get 94ms :-P sage: P6=Posets(6).list() sage: %timeit for P in P6:g=P.hasse_diagram() 10 loops, best of 3: 94.2 ms per loop OK, so it's dot2tex (I guess

[sage-devel] Re: Memory leak? Creation of DiGraph slows down.

2015-05-29 Thread Nathann Cohen
> > I did P6=Posets(6).list() and then for 4 time > I ran the code you give, and instead of 33s I get 94ms :-P sage: P6=Posets(6).list() sage: %timeit for P in P6:g=P.hasse_diagram() 10 loops, best of 3: 94.2 ms per loop sage: %timeit for P in P6:g=P.hasse_diagram() 10 loops, best of 3: 97.2 ms