zipfuse: optimize for uncompressed zip entries
Previously, when a zip entry is opened, its entire content was copied
into zipfuse and kept there until the file is closed. This is a waste of
memory because if the zip entry is stored uncompressed, it can be
directly read from the containing zip file.
This CL implements the optimization.
Bug: 187878241
Test: atest zipfuse.test
Change-Id: Ia2d516d4d03d699ee7da72f576f337bd73516427
diff --git a/zipfuse/Android.bp b/zipfuse/Android.bp
index 24cfaa0..46f4b5a 100644
--- a/zipfuse/Android.bp
+++ b/zipfuse/Android.bp
@@ -14,6 +14,8 @@
"libfuse_rust",
"liblibc",
"libzip",
+ "libscopeguard",
+ "liblog_rust",
],
// libfuse_rust, etc don't support 32-bit targets
multilib: {