compress; threshold option
Merge pull request #796 from jonathanong/compress-threshold

compress; threshold option