diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-08-03 15:02:41 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-08-11 21:43:10 +0200 |
commit | 1a885c25f7ad7eb217d9b2f0ab477ab1b7be6433 (patch) | |
tree | 25b8a6c130e4925ca448cc0f035887bfe9c2b613 /src/dicache.h | |
parent | c3431cc169a7bc24dcff845aeda3f7f30a8ad1fa (diff) |
Add about:dicache for decompressed image cache
The dicache holds the decompressed buffers for each image and it often
is the main cause for memory consumption in Dillo. The current algorithm
for evicting entries waits until a image has no references and at least
three pages were opened before removing the entry.
Diffstat (limited to 'src/dicache.h')
-rw-r--r-- | src/dicache.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/dicache.h b/src/dicache.h index e0f49dfb..815dcf6a 100644 --- a/src/dicache.h +++ b/src/dicache.h @@ -1,3 +1,15 @@ +/* + * File: dicache.c + * + * Copyright 2000-2007 Jorge Arellano Cid <jcid@dillo.org> + * Copyright 2025 Rodrigo Arias Mallo <rodarima@gmail.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + */ + #ifndef __DICACHE_H__ #define __DICACHE_H__ @@ -9,6 +21,7 @@ extern "C" { #include "bitvec.h" #include "image.hh" #include "cache.h" +#include "dlib/dlib.h" /** Symbolic name to request the last version of an image */ #define DIC_Last -1 @@ -76,6 +89,7 @@ DICacheEntry* a_Dicache_ref(const DilloUrl *Url, int version); void a_Dicache_unref(const DilloUrl *Url, int version); void a_Dicache_cleanup(void); void a_Dicache_freeall(void); +Dstr *a_Dicache_stats(void); #ifdef __cplusplus |