Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
media-libs/opus-1.5.1-r1->1.5.2: ~72% binary size drop ;)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3627

PostPosted: Tue Apr 16, 2024 1:54 pm    Post subject: media-libs/opus-1.5.1-r1->1.5.2: ~72% binary size drop ;) Reply with quote

Interestingly:
Code:
pckllbin opus
-rwxr-xr-x 1 root root 5363496 avril  8 17:38 /usr/lib64/libopus.so.0.10.0
 * media-libs/opus-1.5.1-r1
         Total files : 19
         Total size  : 5.80 MiB
Code:
pckllbin opus
-rwxr-xr-x 1 root root 386856 avril 16 16:42 /usr/lib64/libopus.so.0.10.1
 * media-libs/opus-1.5.2
         Total files : 19
         Total size  : 1.06 MiB
Code:
USE="-custom-modes -debug -doc -hardened -static-libs -test" ABI_X86="-32 (64) (-x32)" CPU_FLAGS_X86="sse"-Wa,-mbranches-within-32B-boundaries
CFLAGS="-march=core2 -mtune=native -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects -pipe -Wa,-mbranches-within-32B-boundaries"
CXXFLAGS="-march=core2 -mtune=native -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects -pipe -Wa,-mbranches-within-32B-boundaries"
FEATURES="binpkg-multi-instance parallel-fetch multilib-strict usersandbox split-elog compress-build-logs assume-digests pkgdir-index-trusted binpkg-dostrip binpkg-logs strict pid-sandbox protect-owned qa-unresolved-soname-deps unmerge-orphans ebuild-locks userfetch sfperms distlocks news unmerge-logs fixlafiles network-sandbox preserve-libs merge-sync userpriv sandbox usersync binpkg-docompress config-protect-if-modified unknown-features-warn ipc-sandbox buildpkg-live"


Plz note "-Wa,-mbranches-within-32B-boundaries" badly increases binary size here.

Hoping this is for the best... 8)

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21657

PostPosted: Tue Apr 16, 2024 2:48 pm    Post subject: Reply with quote

That seems like a major flag changed, such as removal of debug symbols or switching from -O0 to -O2.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3627

PostPosted: Tue Apr 16, 2024 2:53 pm    Post subject: Reply with quote

What ever the cause is, not on my side IIRC.

Do you have any numbers to share by chance?

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3627

PostPosted: Tue Apr 16, 2024 3:07 pm    Post subject: Reply with quote

Hu wrote:
That seems like a major flag changed, such as removal of debug symbols or switching from -O0 to -O2.

You may be right :roll:
Code:
diff /var/db/repos/gentoo/media-libs/opus/opus-1.5.1-r1.ebuild /var/db/repos/gentoo/media-libs/opus/opus-1.5.2.ebuild
15c15
< KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc x86"
---
> KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
36,40d35
<
<       # These all have runtime toggles too, per https://opus-codec.org/demo/opus-1.5/
<       -Denable-deep-plc=true
<       -Denable-dred=true
<       -Denable-osce=true
is evidently a thing.

repo/gentoo.git:
Code:
media-libs/opus: bump to 1.5.2
also removed runtime toggles from the ebuild as they are not in the meson file anymore


Time to wonder what functional loss underlies there? ( i.e. AFA conversion is concerned dor my usecase, if any )

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3627

PostPosted: Tue Apr 16, 2024 4:04 pm    Post subject: Reply with quote

Compressing same wav with both version:
Code:
ll session_Audio\ 1-51.opus session_Audio\ 1-52.opus
-rw-r--r-- 1 luc luc 6228421 avril 16 18:55 'session_Audio 1-51.opus'
-rw-r--r-- 1 luc luc 6228421 avril 16 18:48 'session_Audio 1-52.opus
:oops:

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum