summaryrefslogtreecommitdiff
path: root/src/cache.c
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2014-06-24 08:19:18 -0400
committerJorge Arellano Cid <jcid@dillo.org>2014-06-24 08:19:18 -0400
commit9b70e1ec061f43fd7c12c17ccd4ddc8e15fda7cf (patch)
tree83685d9d18208bbe9ca003c624218ba176fb34a7 /src/cache.c
parent95c83100fe731c652bfc6567d14ce5f415d37ee8 (diff)
Moved dicache entry removal to a_Dicache_cleanup()
This allows keeping the decompressed image entry until a_Dicache_cleanup() removes it. With the added SurvCleanup variable that controls how many cleanup passes the entry is kept, it is now possible to tune the dicache. For instance: SurvCleanup=0 same as without patch (negligible difference). SurvCleanup=1 allows Back and Forward reuse entries for adjacent pages. SurvCleanup=2 all the above, plus one more pass of lifetime. The default is SurvCleanup=3 (experimental). Example: If you read a newspaper with lots of images, this caching allows to click an article, read it, and go back *quickly* using the same tab. It is experimental because there may be other simple approaches that serve well/better these kind of usage patterns.
Diffstat (limited to 'src/cache.c')
0 files changed, 0 insertions, 0 deletions