Closed Bug 449130 Opened 17 years ago Closed 17 years ago

consider forcing -O2 for lcms on all platforms

Categories

(Core :: Graphics: Color Management, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bholley, Assigned: bholley)

References

Details

Attachments

(1 file, 1 obsolete file)

right now mac builds lcms with -O2, win32 builds with -O1, and linux builds with -Os. I'm running perf numbers to see if there's a benefit to forcing -O2 on any platform.
This looks like a win. I just got the numbers back from the tryserver. Using the numbers I got on tuesday as a reference, we get 553->520 on linux, 607->597 on windows, and 358->358 on mac (this gives me some confidence in the numbers, since this patch should have zero effect on mac). One thing to determine is how much effect this patch will have after precaching (presumably, most of the wins could be in code that became non-critical with that patch). I'm putting that on the tryserver now.
The results with precaching are less exciting. We get 335->334 on mac, 490->488 on linux, and 498->495 on windows. To me this suggests that most of the perf win was in the linear interpolation, which is no longer on the critical path. Still, I think it's probably a good thing to have overall, though I could easily be persuaded otherwise. Flagging vlad for review.
Attachment #332407 - Flags: review?(vladimir)
Comment on attachment 332407 [details] [diff] [review] proposed patch to force lcms to build -O2 on all platforms You just need it in the src dir, not in lcms/Makefile.in or lcms/include/Makefile.in ... Also, put the MODULE_OPTIMIZE_FLAGS much later in the makefile, probably right before REQUIRES.
Attachment #332407 - Flags: review?(vladimir) → review-
Attached patch updated patchSplinter Review
updated patch
Attachment #332407 - Attachment is obsolete: true
Attachment #332789 - Flags: review?(vladimir)
perf numbers look good even with other optimizations. flagging checkin-needed.
Keywords: checkin-needed
pushed in fb356c4d33a1
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Product: Core → Core Graveyard
Component: GFX → GFX: Color Management
Product: Core Graveyard → Core
QA Contact: general → color-management
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: