[sage-devel] Re: Memory hits the roof when I divide a sage vector.

2010-11-14 Thread Dima Pasechnik
On Nov 13, 12:30 pm, Robert Bradshaw wrote: > On Fri, Nov 12, 2010 at 7:10 PM, Jason Grout > > > > > > wrote: > > On 11/12/10 8:48 PM, Jason Grout wrote: > > >> On 11/12/10 6:22 PM, Maxim wrote: > > >>> I get very high memory usage when I do something like: > >>> sage: get_memory_usage() > >>>

[sage-devel] Re: Memory hits the roof when I divide a sage vector.

2010-11-13 Thread Dima Pasechnik
This is now track #10262 (memory leak in scalar*vector multiplication) Dima On Nov 13, 5:10 pm, Jason Grout wrote: > On 11/12/10 10:30 PM, Robert Bradshaw wrote: > > > On Fri, Nov 12, 2010 at 7:10 PM, Jason Grout > > It only has to construct an element if it can't figure out what to do > > after

[sage-devel] Re: Memory hits the roof when I divide a sage vector.

2010-11-13 Thread Jason Grout
On 11/12/10 10:30 PM, Robert Bradshaw wrote: On Fri, Nov 12, 2010 at 7:10 PM, Jason Grout It only has to construct an element if it can't figure out what to do after consulting the Parents themselves. Ah, okay. And then there's the matter you talk about; why is an element so big? The

[sage-devel] Re: Memory hits the roof when I divide a sage vector.

2010-11-12 Thread Dima Pasechnik
-- | Sage Version 4.6, Release Date: 2010-10-30 | | Type notebook() for the GUI, and license() for information.| -- sage: for r in

[sage-devel] Re: Memory hits the roof when I divide a sage vector.

2010-11-12 Thread Maxim
Robert Bradshaw wrote: > [...] For almost > any kind of linear algebra, you're better off using RDF, or even numpy > directly. Thanks for that! Using numpy arrays just gave a new breath of life to my 8GB ram! Now the example in my first post takes... 277KB instead of 4.5GB, which is closer to my

[sage-devel] Re: Memory hits the roof when I divide a sage vector.

2010-11-12 Thread Dima Pasechnik
It's not only division (both on Sage 4.5* and on 4.6, with minor differences in memory usage figures): sage: get_memory_usage() 811.38671875 sage: A=vector(range(0,7000))*(1/2) sage: get_memory_usage() 3059.31640625 On Nov 13, 12:30 pm, Robert Bradshaw wrote: > On Fri, Nov 12, 2010 at 7:10 PM, J

Re: [sage-devel] Re: Memory hits the roof when I divide a sage vector.

2010-11-12 Thread Robert Bradshaw
On Fri, Nov 12, 2010 at 7:10 PM, Jason Grout wrote: > On 11/12/10 8:48 PM, Jason Grout wrote: >> >> On 11/12/10 6:22 PM, Maxim wrote: >>> >>> I get very high memory usage when I do something like: >>> sage: get_memory_usage() >>> -> 809.9453125 >>> sage: A=vector(range(0,1))/1 >>> sage: get_me

[sage-devel] Re: Memory hits the roof when I divide a sage vector.

2010-11-12 Thread Jason Grout
On 11/12/10 8:48 PM, Jason Grout wrote: On 11/12/10 6:22 PM, Maxim wrote: I get very high memory usage when I do something like: sage: get_memory_usage() -> 809.9453125 sage: A=vector(range(0,1))/1 sage: get_memory_usage() -> 5393.2734375 Which is a whooping 4.5GB+ of memory to hold a 1

[sage-devel] Re: Memory hits the roof when I divide a sage vector.

2010-11-12 Thread Jason Grout
On 11/12/10 6:22 PM, Maxim wrote: I get very high memory usage when I do something like: sage: get_memory_usage() -> 809.9453125 sage: A=vector(range(0,1))/1 sage: get_memory_usage() -> 5393.2734375 Which is a whooping 4.5GB+ of memory to hold a 1 float vector... I would have thought