Re: lame view cache hack



On 25 Aug 2002, Alex Graveley wrote:

> Hi,
> 
> So I wrote the following ugly hack which keeps a most recently used list
> of views around and tries to reuse them when loading a new location. 
> Views are destroyed after 4 minutes of inactivity.  
> 
> This has two effects, first, browsing around is pretty speedy (though a
> little flickery), and secondly, the view remains scrolled to the correct
> location between location changes.
> 
> There are some bugs, but I wanted to see if this would be considered raw
> crack-smokery before I spend any more time on it :)

It sounds like this has the potential to use a whole lot of memory. Have 
you looked into this?

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a maverick playboy boxer looking for a cure to the poison coursing 
through his veins. She's a sharp-shooting hypochondriac detective who don't 
take no shit from nobody. They fight crime! 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]