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/cache.c | |
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/cache.c')
-rw-r--r-- | src/cache.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cache.c b/src/cache.c index 7ee9d9d7..5a852167 100644 --- a/src/cache.c +++ b/src/cache.c @@ -427,6 +427,8 @@ static int Cache_internal_url(CacheEntry_t *entry) if (strcmp(URL_PATH(entry->Url), "cache") == 0) { s = Cache_stats(); + } else if (strcmp(URL_PATH(entry->Url), "dicache") == 0) { + s = a_Dicache_stats(); } if (s != NULL) { |