• 11 Posts
  • 17 Comments
Joined 1 year ago
cake
Cake day: June 10th, 2023

help-circle







  • Gamma@programming.devtoProgrammer Humor@lemmy.mlNew File Format
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    10 months ago

    Thought I’d check on the Linux source tree tar. zstd -19 vs lzma -9:

    ❯ ls -lh
    total 1,6G
    -rw-r--r-- 1 pmo pmo 1,4G Sep 13 22:16 linux-6.6-rc1.tar
    -rw-r--r-- 1 pmo pmo 128M Sep 13 22:16 linux-6.6-rc1.tar.lzma
    -rw-r--r-- 1 pmo pmo 138M Sep 13 22:16 linux-6.6-rc1.tar.zst
    

    About +8% compared to lzma. Decompression time though:

    zstd -d -k -T0 *.zst  0,68s user 0,46s system 162% cpu 0,700 total
    lzma -d -k -T0 *.lzma  4,75s user 0,51s system 99% cpu 5,274 total
    

    Yeah, I’m going with zstd all the way.








  • I typically use find "$HOME/docs", but with a few caveats:

    • In Zsh or Fish, the quotes are unnecessary: find $HOME/docs
    • If I’m using anything potentially destructive: mv "${HOME:?}/bin" ...
    • Of course, if it’s followed by a valid identifier character, I’ll add braces: "${basename}_$num.txt"
    • I’m pretty inconsistent when globbing: "$HOME"/docs/* or "$HOME/docs/"* are common for me.
    • I don’t use "${HOME}" unless I actually need the braces. The reason? I write more Zsh than anything, and the braces are even less necessary in Zsh: $#array[3] actually gets the length of the third element of the array, rather than substituting the number of arguments, then the string 'array[3]'