Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 137706

Summary: parallelize locale-gen
Product: Gentoo Linux Reporter: Brian Harring (RETIRED) <ferringb>
Component: New packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: releng
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: locale-gen-parallel.patch

Description Brian Harring (RETIRED) gentoo-dev 2006-06-23 04:00:00 UTC
simple lil patch.
downside?  ordering number wise is debatable- proper enough imo, but could see some complaints.

the parallelization also isn't perfect; cause it's bash, resorting to a round robin loop through a ring buffer; one slow ass locale to generate, holds up starting others in parallel when it waits for that generation to complete.

Meanwhile, reduction of 9m10s to 5m30s for me for dual core, so... worth it.
Comment 1 Brian Harring (RETIRED) gentoo-dev 2006-06-23 04:02:33 UTC
Created attachment 89890 [details, diff]
locale-gen-parallel.patch
Comment 2 Brian Harring (RETIRED) gentoo-dev 2006-07-02 03:44:07 UTC
*bump*.
comments?
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2006-09-08 18:39:05 UTC
Any status on this one?
Comment 4 Brian Harring (RETIRED) gentoo-dev 2006-09-08 19:01:07 UTC
minor bug in the patch,
+	    ${GOOD}-t, --thread${NOMRAL}           Number of threads to run
should be ${NORMAL}, not NOMRAL

aside from that, still works fine for me.
Comment 5 SpanKY gentoo-dev 2006-09-23 07:28:41 UTC
touched up & merged