Closed Bug 134639 Opened 24 years ago Closed 24 years ago

speedup x86 unix XPTC_InvokeByIndex

Categories

(Core :: XPConnect, defect, P2)

x86
Linux
defect

Tracking

()

VERIFIED FIXED
mozilla1.0

People

(Reporter: bbaetz, Assigned: bbaetz)

References

Details

(Keywords: perf)

Attachments

(1 file)

Looking through recent checkins, I noticed that AIX xptcinvoke was sped up by not caring exactly how much stack space needs to be pushed, and just calculating the maximum space which could be needed. This was based on a windows patch for bug 111771. Unix can do exactly the same thing, it turns out. Using the test program on bug 111771, the patch I'll attach goes from an xptc overhead of 87% to 81%. I doubt this gives us a noticable perf increase, but I don't think it can hurt.
Oh, and loop change was in the windows patch, and I figured that we may as well keep the similar code bits reasonably close.
Status: NEW → ASSIGNED
Keywords: patch, perf, review
Priority: -- → P2
Target Milestone: --- → mozilla1.0
Comment on attachment 77034 [details] [diff] [review] patch + test program changes r=dbradley Normally I'm opposed to optimizations like the for loop and size calc using shift operator, but given the range of platforms we operate on its probably a good guard against less than great optimizers.
Attachment #77034 - Flags: review+
You recommended the for loop change in that other bug ;) The shift was just a literal translation of the windows asm.
Comment on attachment 77034 [details] [diff] [review] patch + test program changes sr=jband. I'll signoff on this. I'm a little uncomfortable given the fact that this code is used on so many platforms - what with the conditional compile blocks and all. But, I can't see how this change would get entangled there and cause any problems. It would be *nice* to test on more of the platforms that use this code. But, I'm *not* going to claim that as a requirement before checking in the change.
Attachment #77034 - Flags: superreview+
The complicated #ifdef in there is only turned on for gcc 2.7.2, which we no longer support. The other one is just a gcc 3 change, and shouldn't be affected by this.
Please update this bug with an [adt1] - [adt3] impact rating (or take it off the list if it doesn't even rate adt3.) Thanks!
Comment on attachment 77034 [details] [diff] [review] patch + test program changes a=rjesup@wgate.com
Attachment #77034 - Flags: approval+
Checked in, with the speed test disabled.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Marking Verified -
Status: RESOLVED → VERIFIED
Depends on: 530639
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: