cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Peak memory usage for Cayenne
Date Fri, 20 Jun 2008 08:33:29 GMT
If we implement swapping out pages, 'setPageSize()' will indeed be the  
only thing a user would care about.

Andrus


On Jun 20, 2008, at 11:29 AM, Øyvind Harboe wrote:

> On Fri, Jun 20, 2008 at 10:26 AM, Andrus Adamchik
> <andrus@objectstyle.org> wrote:
>> We thought about automatically swapping out pages from the
>> IncrementalFaultList as it is getting filled. At the time we had  
>> doubts
>> about the efficiency of algorithms under consideration in all  
>> different
>> circumstances where pagination might be used. Now that I mentioned  
>> weak
>> references, this can be another algorithm for dealing with it -  
>> store each
>> "page" as a weak reference, so once its objects stop being  
>> referenced, it
>> will become a candidate for gc...
>
> Hmm.... I'd love it if adding a setPageSize() was all that was  
> needed to
> solve these peak memory usage problems.
>
> I think I'll tinker a bit with a patch...
>
>
> -- 
> Øyvind Harboe
> http://www.zylin.com/zy1000.html
> ARM7 ARM9 XScale Cortex
> JTAG debugger and flash programmer
>


Mime
View raw message