Conversation

This Tweet was deleted by the Tweet author. Learn more
Replying to and @snargleplax
Git history gets ridiculously bloated over time. Compacting it all with git gc --aggressive helps a lot. Setting core.compression to 9 gets a little bit more out of the zlib compression. Most size wins come from converting loose objects and smaller packs into unified packs.
1
11
I'm chronically low on disk space from working on multiple different trees based on Linux, Chromium and the Android Open Source Project. Stuck with this puny 2TB Samsung 980 Pro until they release the 4TB Samsung 990 Pro next year. Have learned lots of ways to save disk space...
1
3
Can also save tons of space with `cp --reflink` if your filesystem has support (XFS and Btrfs but not ext4). It's essentially fork(...) for files. It uses block-based copy-on-write at the destination. Can copy an identical file over another to deduplicate without sharing writes.
2
5
XFS genuinely performs substantially better than ext4 for highly parallel I/O on an NVMe drive. f2fs is nicer in some situations and Android makes great use of f2fs being a log structured fs via the checkpoint disable feature to allow rolling back updates after data was mounted.
1
3
f2fs automatically moves to new data formats in kernel upgrades and doesn't officially support downgrading to a lower major kernel version so it's not really a reasonable fs for a workstation. Has better performance than ext4 but not sure how it compares with XFS for high end hw.
1
1