Re: [zathura] [Zathura PATCH] Replace the periodic page reclaiming code with a LRU caching algorithm.

2013-03-25 Thread Marwan Tanager
On Mon, Mar 25, 2013 at 07:44:10PM +0100, Sebastian Ramacher wrote: > First of all, thanks for the awesome patch and implementing this > superior method of page caching. You,re more than welcome. > Here are some comments. > > On 2013-03-25 13:11:21, Marwan Tanager wrote: > > diff --git a/page.c

Re: [zathura] [Zathura PATCH] Replace the periodic page reclaiming code with a LRU caching algorithm.

2013-03-25 Thread Sebastian Ramacher
First of all, thanks for the awesome patch and implementing this superior method of page caching. Here are some comments. On 2013-03-25 13:11:21, Marwan Tanager wrote: > diff --git a/page.c b/page.c > index d31af46..cb84313 100644 > --- a/page.c > +++ b/page.c > @@ -11,15 +11,6 @@ > #include "in

[zathura] [Zathura PATCH] Replace the periodic page reclaiming code with a LRU caching algorithm.

2013-03-25 Thread Marwan Tanager
This patch implements a page cache that is invalidated in a LRU fashion. Pages are added to the cache as soon as they become visible. When the cache is full and a new page that isn't in the cache becomes visible, the least recently viewed page in the cache is evicted from memory and the new one