libjxl / libjxl

JPEG XL image format reference implementation
BSD 3-Clause "New" or "Revised" License
2.72k stars 263 forks source link

Reduce excessive codegen #3887

Open awxkee opened 1 month ago

awxkee commented 1 month ago

Hi,

I'm maintainer or wrappers for libjxl for iOS and android.

Last update to 0.11.0 almost twiced JXL binaries size, this makes unreasonable to update binaries, since no one will wish to add to their mobile app 5+mb for each platform. Especially, who distributes universal APK definitely will avoid to permamently add 20+ MB one click in their app just for JXL.

If you expect libjxl to be distributed on mobile platforms at least by 3rd parties, size should be returned at least to 3.74 mb ( this is brotli + highway + jxl + cms + threads, since mobile platform do not have pre-installed options) for aarch64 android.

Also will be very kind of you to provide option to generate binaries as small as possible preserving all mandatory features.

Galaxy4594 commented 1 month ago

There might be more relevant information here: #3841 You can probably just change a couple of flags in the build process and get smaller binaries.

awxkee commented 1 month ago

Thanks.

But I didn't use those flags so it won't help.