Changes between Version 7 and Version 8 of JavaScript performance improvement ideas
- Timestamp:
- Oct 24, 2007 11:26:03 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
JavaScript performance improvement ideas
v7 v8 18 18 * Special-case numeric code. If we can prove some values are guaranteed to be numeric, we could evaluate expressions involving them purely using doubles, without converting intermediate values to immediate values or NumberImps at all. 19 19 20 * Make the static lookup.h-style hashtables power-of-two sized to save the cost of integer divide. Another possible optimization is to store the static property names as UTF-16 arrays instead of strings.20 * Store static hashtable property names as UTF-16 arrays instead of c-strings for quicker key comparisons. 21 21 22 22 * Possibly do all property handling via the regular property map somehow, even native-code implemented properties, to avoid doing the extra lookup in the static hashtable at all.