• Yipeng Wang's avatar
    Reland: [about:credits] Improve compression by sorting licenses · 0534ad76
    Yipeng Wang authored
    Reverted in: ba3fb344.
    
    Reason for reland: Fixed sort order when two licenses of same length exist.
    
    Restore the alphabetical order in javascript.
    
    Saves around 100k when gzip is used, but only 2k for brotli.
    Intention is to have android_webview to use the same copy
    of about:credits in a follow-up, in which case this optimization
    becomes relevant.
    
    TBR=dbeam@chromium.org
    BUG=688077
    Change-Id: I085626bc2c81933ae973fb9762b6c3694318855b
    
    Change-Id: I085626bc2c81933ae973fb9762b6c3694318855b
    Reviewed-on: https://chromium-review.googlesource.com/490718
    Commit-Queue: Andrew Grieve <agrieve@chromium.org>
    Reviewed-by: default avatarRichard Coles <torne@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#468402}
    0534ad76
licenses.py 26.6 KB