Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 605906 - media-libs/flac-1.3.2 enable 64bit words on x86_64
Summary: media-libs/flac-1.3.2 enable 64bit words on x86_64
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal enhancement
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2017-01-16 15:03 UTC by Shark
Modified: 2025-04-28 18:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to switch "--enable-64-bit-words" on (flac-1.3.2-ebuild-enable-64-bit-words.patch,416 bytes, patch)
2017-01-16 15:03 UTC, Shark
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Shark 2017-01-16 15:03:42 UTC
Created attachment 460348 [details, diff]
Patch to switch "--enable-64-bit-words" on

Flac-1.3.2 has a configure switch to enable 8 bytes words on 64bit systems, but it's disable by default. See this git commit:
https://git.xiph.org/?p=flac.git;a=commit;h=6cc1cbad2c40a4406fd911445b86b3df2291dd79

Working on 8 bytes at times give some performance (5%-10% IIRC) improvement, so it would be nice to have it enabled in the ebuild.
I've added a check for CHOST=x86_64 to the flac-1.3.2-r1 ebuild, and it works on my system, but i'm no expert on ebuild writing.
Comment 1 Filip Kobierski 2025-04-28 10:24:16 UTC
This can be easily implemeted by adding 

$([[ ${CHOST} == *x86_64* ]] && echo "--enable-64-bit-words")

to myeconfargs.
Do we want this?
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-04-28 13:27:19 UTC
(In reply to Filip Kobierski from comment #1)
> This can be easily implemeted by adding 
> 
> $([[ ${CHOST} == *x86_64* ]] && echo "--enable-64-bit-words")

(Well, yeah, that's what the attached patch already did.)
Comment 3 Filip Kobierski 2025-04-28 18:16:22 UTC
> the attached patch already
I did not notice it.


I have done a simple (but long) "benchmark" of 1.5.0 by doing 'ebuild compile; time ebuild test':

# :: gentoo
1. real	12m5.876s; user	9m38.188s;  sys	5m35.370s
2. real	11m48.366s; user 9m25.594s; sys	5m23.649s
3. real	12m9.248s; user	9m39.520s;  sys	5m40.103s

# 64bit words
1. real	11m45.112s; user 9m23.116s;  sys 5m22.070s
2. real	12m3.832s;  user 9m36.254s;  sys 5m33.531s
3. real	12m11.313s; user 10m15.681s; sys 5m23.508s

I see no significant differences and think a proper benchmark is needed to judge the changes.

Shark, how did you observe this 5-10% performance improvement?

If this were to be added, it would make sense to test not only for amd64, but for a 64 bit arch in general, right?