This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch: More __builtin_expect fun


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]