-march=x86-64 -mtune=generic to -march=native
MAKEFLAGS="-j$(nproc)"
### speedup package compression for XZ
1. use less aggressive compression.
-0 is the faster, I prefer -2 (default is -6)2. use all available thread -T0 (or -T8 for 8 threads)
COMPRESSXZ=(xz -c -z -) to COMPRESSXZ=(xz -c -z -2 -T0 -)
As the default package extension became zst PKGEXT='.pkg.tar.zst', the compression isn't hurt badly anymore, but it can be speed up by add the desired level to COMPRESSZST, like add -1:
COMPRESSZST=(zstd -1 -c -z -q -)
Thanks man ❤️ ❤️ ❤️ ❤️