Closed
Bug 138741
Opened 23 years ago
Closed 16 years ago
Inline functions in jsdtoa.c for performance
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
People
(Reporter: bratell, Assigned: crowderbt)
References
Details
(Keywords: js1.5, perf)
Measurements in bug 120992 shows that we can improve performance in jsdtoa.c by
~10% just by inlining free and cmp. This probably has compatibility problems.
Inline didn't appear in the C standard until C99.
Comment 1•23 years ago
|
||
Go fast, maybe this will prove good for 1.0.
/be
Keywords: js1.5,
mozilla1.0
Comment 2•23 years ago
|
||
n.b. it's easy to #define inline away to the
empty string for compilers that don't support it.
(I imagine there's already an autoconf macro for
detecting and pretty much doing that.)
Comment 3•23 years ago
|
||
yup, there is an autoconf macro, AC_C_INLINE
it defines "inline" to whatever the compiler understands for inlining functions
or to nothing if inlining isn't supported.
Comment 4•23 years ago
|
||
AC_C_INLINE Doesn't appear to work.
Chris Seawood, know of anyway to autodetect inline?
Comment 5•23 years ago
|
||
There is some code in glibidl configure.in that does what we need sort of:
http://lxr.mozilla.org/seamonkey/source/xpcom/typelib/xpidl/glib/glib-1.2.1/configure.in#209
Updated•22 years ago
|
Updated•22 years ago
|
Keywords: mozilla1.1 → mozilla1.2
Updated•19 years ago
|
Assignee: rogerl → general
QA Contact: pschwartau → general
Assignee | ||
Comment 6•17 years ago
|
||
Grabbing this since I have a recent interest in jsdtoa.c and it makes me sad that this bug didn't go anywhere.
Assignee: general → crowder
Assignee | ||
Updated•17 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 7•16 years ago
|
||
Some of this was fixed by my dtoa.c work last year, and the rest should be followed-up elsewhere.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•