cre cache: allow for disabling compression (#3670)

With ["cre_compress_cached_data"] = false in settings.reader.lua.
Not using compression for cache files does indeed take more space,
but it does speed up opening, rendering, page turns, and closing,
with big documents.
Bump base and crengine.
pull/3671/head
poire-z 6 years ago committed by GitHub
parent 39738955f3
commit 501df2ebc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1 +1 @@
Subproject commit 953103e605af32387d0bbc02aefe55b48b05f059
Subproject commit 4f050420773b9bdb3b50eed284539b05c934a537

@ -47,7 +47,8 @@ function CreDocument:cacheInit()
if lfs.attributes("./cr3cache", "mode") == "directory" then
os.execute("rm -r ./cr3cache")
end
cre.initCache(DataStorage:getDataDir() .. "/cache/cr3cache", 1024*1024*32)
cre.initCache(DataStorage:getDataDir() .. "/cache/cr3cache", 1024*1024*32,
G_reader_settings:nilOrTrue("cre_compress_cached_data"))
end
function CreDocument:engineInit()

Loading…
Cancel
Save