Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • libANGLE
  • MemoryProgramCache.cpp
Find file
BlameHistoryPermalink
  • Tim Van Patten's avatar
    Compress Program binaries saved in blob cache · b55f0f78
    Tim Van Patten authored Jun 02, 2020
    The Android blob cache has a limit of 2MB, so ANGLE should compress the
    Program binaries that are saved into it to maximize its effectiveness.
    
    ANGLE will gzip the program binaries before being stored in the blob
    cache and then uncompress them when retrieved. Using gzip, the binaries
    are compressed to ~25% of their size when running the T-Rex benchmark.
    
    Some examples (in bytes):
    
    Uncompressed: 20193, Compressed: 4455
    Uncompressed:  8767, Compressed: 2369
    Uncompressed: 11144, Compressed: 2927
    
    This doesn't appear to affect the T-Rex benchmark since all of the
    programs are loaded/decompressed as part of the benchmark
    initialization, and the programs are small enough to all fit in the
    blob cache without compression.
    
    Bug: b/155184635
    Test: T-Rex, CQ
    Change-Id: Ie6a101c32ab5fd49baae1cb7aecdd26a934e15af
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2227529Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org>
    Commit-Queue: Tim Van Patten <timvp@google.com>
    b55f0f78
MemoryProgramCache.cpp 10.1 KB
EditWeb IDE
×

Replace MemoryProgramCache.cpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.