Closed
Bug 134639
Opened 24 years ago
Closed 24 years ago
speedup x86 unix XPTC_InvokeByIndex
Categories
(Core :: XPConnect, defect, P2)
Tracking
()
VERIFIED
FIXED
mozilla1.0
People
(Reporter: bbaetz, Assigned: bbaetz)
References
Details
(Keywords: perf)
Attachments
(1 file)
|
4.25 KB,
patch
|
dbradley
:
review+
jband_mozilla
:
superreview+
jesup
:
approval+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•24 years ago
|
||
| Assignee | ||
Comment 2•24 years ago
|
||
Oh, and loop change was in the windows patch, and I figured that we may as well
keep the similar code bits reasonably close.
Comment 3•24 years ago
|
||
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+
| Assignee | ||
Comment 4•24 years ago
|
||
You recommended the for loop change in that other bug ;)
The shift was just a literal translation of the windows asm.
Comment 5•24 years ago
|
||
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+
| Assignee | ||
Comment 6•24 years ago
|
||
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.
Comment 7•24 years ago
|
||
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 8•24 years ago
|
||
Comment on attachment 77034 [details] [diff] [review]
patch + test program changes
a=rjesup@wgate.com
Attachment #77034 -
Flags: approval+
| Assignee | ||
Comment 9•24 years ago
|
||
Checked in, with the speed test disabled.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•