BlueBird wrote:
> I have a program that manages several thousands instances of one
> object. To reduce memory
> consumption, I want of course that specific object to have the
> smallest memory footpring possible.
>
> I have a few ideas that I want to experiment with, like using
> __slots__,
On 22 avr, 11:56, Steven D'Aprano
wrote:
> On Wed, 22 Apr 2009 02:30:32 -0700, Chris Rebert wrote:
> > On Wed, Apr 22, 2009 at 2:24 AM, BlueBird wrote:
>
> >> Hi,
>
> >> I have a program that manages several thousands instances of one
> >> object. To reduce memory
> >> consumption, I want of cour
On Wed, 22 Apr 2009 02:30:32 -0700, Chris Rebert wrote:
> On Wed, Apr 22, 2009 at 2:24 AM, BlueBird wrote:
>>
>> Hi,
>>
>> I have a program that manages several thousands instances of one
>> object. To reduce memory
>> consumption, I want of course that specific object to have the smallest
>> mem
BlueBird wrote:
I have a program that manages several thousands instances of one
object. To reduce memory
consumption, I want of course that specific object to have the
smallest memory footpring possible.
Have you thought of using something like the flyweight pattern and a
compact data repres
On Wed, Apr 22, 2009 at 2:24 AM, BlueBird wrote:
>
> Hi,
>
> I have a program that manages several thousands instances of one
> object. To reduce memory
> consumption, I want of course that specific object to have the
> smallest memory footpring possible.
>
> I have a few ideas that I want to expe
Hi,
I have a program that manages several thousands instances of one
object. To reduce memory
consumption, I want of course that specific object to have the
smallest memory footpring possible.
I have a few ideas that I want to experiment with, like using
__slots__, using a tuple or using a dict.