Closed Bug 138741 Opened 23 years ago Closed 16 years ago

Inline functions in jsdtoa.c for performance

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

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.
Keywords: perf
Go fast, maybe this will prove good for 1.0. /be
Keywords: js1.5, mozilla1.0
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.)
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.
AC_C_INLINE Doesn't appear to work. Chris Seawood, know of anyway to autodetect inline?
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
Blocks: 149801
Keywords: mozilla1.0mozilla1.1
OS: Windows 2000 → All
Hardware: PC → All
Keywords: mozilla1.1mozilla1.2
Assignee: rogerl → general
QA Contact: pschwartau → general
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
Status: NEW → ASSIGNED
Blocks: 117611
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.