From 88a1b76beaa30614256005891af433a0d914e084 Mon Sep 17 00:00:00 2001 From: Jisun Lee Date: Thu, 17 Oct 2024 20:12:29 +0900 Subject: EGL Multifile Blobcache: Make use of crc32_z algorithm instead of crc32c To improve the performance in generating crc. Using crc32_z would reduce the function duration by 98 ~ 99 % as follows. Test: Genshin Impact Loading Algorithm Num calls Total Duration (millisec) crc32_z 3678 9909.88 crc32c 3596 1260876.81 Bug: b/373718861 Change-Id: I0b67265c4bcf199d4433b953a5a399629c9508f9 Signed-off-by: Jisun Lee --- opengl/libs/Android.bp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'opengl/libs/Android.bp') diff --git a/opengl/libs/Android.bp b/opengl/libs/Android.bp index 5159ffe86b..b19a862b6c 100644 --- a/opengl/libs/Android.bp +++ b/opengl/libs/Android.bp @@ -135,6 +135,9 @@ cc_library_static { "EGL/MultifileBlobCache.cpp", ], export_include_dirs: ["EGL"], + shared_libs: [ + "libz", + ], } cc_library_shared { @@ -169,6 +172,7 @@ cc_library_shared { "libutils", "libSurfaceFlingerProp", "libunwindstack", + "libz", ], static_libs: [ "libEGL_getProcAddress", @@ -199,6 +203,7 @@ cc_test { ], shared_libs: [ "libutils", + "libz", ], } -- cgit v1.2.3-59-g8ed1b