HomePhorge

Allow modern hunks to be stored deflated

Description

Allow modern hunks to be stored deflated

Summary: Ref T4045. Ref T5179. When saving a modern hunk, deflate it if we have the function and deflating it will save a nontrivial number of bytes.

Test Plan:

  • Used bin/hunks migrate to move some hunks over, saw ~70-80% compression on most standard hunks.
  • Viewed changesets using compressed hunks.
  • Profiled gzinflate() and verified the cost is trivial (<< 1ms) at least for normal diffs.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T4045, T5179

Differential Revision: https://secure.phabricator.com/D9292

Details

Provenance
epriestleyAuthored on May 25 2014, 11:41 AM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rP5b1262c98b8f: Add a `bin/hunks` script to manage migrations of hunk data
Branches
Unknown
Tags
Unknown

Event Timeline