Hello there,
I am currently having trouble in memory management, I wrote a code that was
not supposed to store anything but actually it was using a massive amount
of memory. At a first glance, I thought it was related to some function in
my code, such as factor() for polynomials in a multivariat
You can fill your memory with something simpler
sage: l = range(10**9)
As far as I can see it has nothing to do with Sage or loops. In Python2
the range functions constructs a list. And in the above example, the
list is huge.
Vincent
On 15/12/2017 12:06, Marco Caselli wrote:
Hello there,
I think Marco (who works with me) took my suggestion to simplify his
problem code as much as possible before posting a little too literally.
Marco, send in something closer to what you showed me yesterday (which was
about factorization of polynomials of degree 4 in F[X,Y,Z] with F a quite
small fin
On Friday, December 15, 2017 at 12:16:04 PM UTC, vdelecroix wrote:
>
> You can fill your memory with something simpler
>
>sage: l = range(10**9)
>
> As far as I can see it has nothing to do with Sage or loops. In Python2
> the range functions constructs a list. And in the above example, th
Thank you very much for your prompt replies. I was sure that range(n)
creates an iterator instead of the list itself, my bad.
In any case, even if the function is creating this list, why is it still
stored in memory after the function terminates? It is a local variable, and
is not returned so i
On Friday, December 15, 2017 at 2:51:37 PM UTC, Marco Caselli wrote:
>
> Thank you very much for your prompt replies. I was sure that range(n)
> creates an iterator instead of the list itself, my bad.
> In any case, even if the function is creating this list, why is it still
> stored in memory
On Friday, December 15, 2017 at 6:51:37 AM UTC-8, Marco Caselli wrote:
>
> Thank you very much for your prompt replies. I was sure that range(n)
> creates an iterator instead of the list itself, my bad.
> In any case, even if the function is creating this list, why is it still
> stored in memory