Changes between Version 1 and Version 2 of JavaScript performance improvement ideas
- Timestamp:
- Oct 3, 2007, 2:57:59 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
JavaScript performance improvement ideas
v1 v2 14 14 15 15 * 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. 16 17 * 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. 18 19 * 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. 20 21 * Scalable Array implementation so that JS arrays don't just "fall off the cliff" when they get over the size threshold. One possible idea is that you expand the storage if items are added close to the current end of the storage. Another possibility is using a more general sparse array implementation.