- Rename your C:\Program Files (x86)\Unity\Editor\Data\Tools\lzma.exe to lzma_real.exe. You can also make a separate backup to a safe place if you wish.
- Copy lzma.exe from the "windows binaries" directory (or your custom build from sources) into your Unity3D tools folder
- -Done-
A log file will be written to lzma_call_cli_arguments_log.txt within the Tools directory where you can have a look at the command line parameters which Unity3D used to call lzma.exe. You can also find the elapsed time of the compression there.
Whenever Unity3D uses LZMA compression, the "fake" lzma.exe from this Speedup Project will substitute Unity3Ds max-compression parameters (for e.g. -fb372) to those which provide fastest compression (-a0 -d0 -mt4 -fb5 -mc0 -lc0 -pb0 -mfbt2).
This interceptor can speed up compressing the build by a factor of 4!
---> Important: Speed don't come for free: Compression rate will be worst, only use it in your local development environment! <---
Tested with Unity 3.4 and Unity 3.5 on Windows
Follow me on Twitter @derFunk! Let me know if this little project helped you saving time, and if you experienced even better speedup factors.