Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


How to use libjpeg-turbo( 2-4x as fast as libjpeg )?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

How to use libjpeg-turbo( 2-4x as fast as libjpeg )?

Jack_298Jack_298 Member

Libjpeg-turbo declaims that it's 2-4x as fast as libjpeg, however, I replaced libjpeg with libjpeg-turbo, but there's no performance difference?

I used the "ldd" command to analyze a program, it does link to libjpeg dynamically:

libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x000000327bc00000)

But whether do I replace libjpeg with libjpeg-turbo by manipulating LD_LIBRARY_PATH:

export LD_LIBRARY_PATH=/opt/libjpeg-turbo/lib64:$LD_LIBRARY_PATH

Or link libjpeg.so.62 to libjpeg-turbo directly:

ln -s /opt/libjpeg-turbo/lib64/libjpeg.so.62.1.0 /usr/lib64/libjpeg.so.62

I can't see any performance difference, even the file size of the generated image didn't change!

Comments

Sign In or Register to comment.