optimised compress
Merge commit 'd46b679'