Hi, I have recently encountered some issues using multivariate polynomials in Sage. The most serious is a memory leak, which occurs in the following examples:
The following shows a small memory leak: R.<X,Y> = ZZ[] P = (X+Y)^120*Y^100 mem1 = get_memory_usage() for i in range(100): Q = P(X,Y) mem2 = get_memory_usage() print mem2 - mem1 whereas the following gives a much bigger memory leak: R.<X,Y> = ZZ[] P = (X+Y)^120*Y^100 mem1 = get_memory_usage() for i in range(100): Q = P(X,Y) mem2 = get_memory_usage() print mem2 - mem1 I tried this on Sage 7.4, Sage 8.5, and on the Sage 8.6 CoCalc server, all with similar results. Additionally, I noticed that operations with multivariate polynomials are way faster on Sage 7.4 than on Sage 8.*. Is there any work around for this problem? I tried to search in the open tickets, the closest thing I could find is this: https://trac.sagemath.org/ticket/13447 Could this be what is causing these issues? Thanks in advance. Best, Nadim. -- 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.