Re: Peak memory usage for Cayenne

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri Jun 20 2008 - 04:33:29 EDT

  • Next message: Øyvind Harboe: "Comparing objects"

    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
    > <andru..bjectstyle.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
    >



    This archive was generated by hypermail 2.0.0 : Fri Jun 20 2008 - 04:34:02 EDT