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...
Andrus
On Jun 20, 2008, at 11:07 AM, Øyvind Harboe wrote:
I've been looking a bit at IncrementalFaultList and I'm thinking it
might be worthwhile to try the following implementation to
minimize the # of objects stuck in memory:
List l;
query.setPageSize(1000);
l=getDataContext().performQuery(query);
while (l.size()>0)
{
t=l.remove(0);
/* do processing here.... */
}
--
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer