dropbox / lepton

Lepton is a tool and file format for losslessly compressing JPEGs by an average of 22%.
https://blogs.dropbox.com/tech/2016/07/lepton-image-compression-saving-22-losslessly-from-images-at-15mbs/
Apache License 2.0
5.01k stars 355 forks source link

How to get 5MB/s encode rate? #68

Closed Ryen closed 8 years ago

Ryen commented 8 years ago

I am testing on Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz, using the sockettester.py. But only get 1.2MB/s for many jpgs. Is there any trick or argument I need to set to make it faster?

pstibrany commented 8 years ago

Maybe your binary is built with debug flags turned on? I had similar problem in issue #55

Ryen commented 8 years ago

Er, I just build using

./autogen.sh
./configure
make

Is there any flag to set it? And I've seen there is an avx2 version, how to build it? Thanks!

danielrh commented 8 years ago

make sure to pass

./autogen.sh
CXXFLAGS="-O3 -DNDEBUG" ./configure
make

or you can do mkdir build cmake .. -DCMAKE_BUILD_TYPE=Release make

also try passing -noverify as well... though I would recommend that you also verify it yourself

Ryen commented 8 years ago

Thanks, use -O3 flag really works~