This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Re: Patch: More __builtin_expect fun
- To: Bryce McKinlay <bryce at albatross dot co dot nz>
- Subject: Re: Patch: More __builtin_expect fun
- From: Tom Tromey <tromey at cygnus dot com>
- Date: Mon, 1 May 2000 13:54:48 -0700 (PDT)
- Cc: java-patches at sourceware dot cygnus dot com
- References: <390D5842.3873EDB2@albatross.co.nz>
Bryce> I identified a few places where __builtin_expect should be
Bryce> worthwhile in the Class implementation.
Check this in with Andrew's suggested change.
Bryce> FYI, I have enabled __builtin_expect in my local tree with
Bryce> these changes, and it does seem to make a measurable
Bryce> performance improvement (1% and better according to my
Bryce> unscientific testing).
I think we should definitely only do this when there is a measurable
benefit. There is a tradeoff with maintainability.
Tom