Vector.<*> and generic Vector.<Object> should have a non-boxing representation

NEW
Unassigned

Status

Tamarin
Virtual Machine
7 years ago
7 years ago

People

(Reporter: Lars T Hansen, Unassigned)

Tracking

(Blocks: 1 bug)

Details

(Whiteboard: PACMAN)

(Reporter)

Description

7 years ago
As is the case for Array, see bug #683839, we do not as a rule want to box Number data and even large int/uint data when storing them into a Vector.<*> or Vector.<Object>, but instead use a non-boxing representation such as NaN encoding, there are various options.

The gains of this optimization are uncertain, and probably significantly less than the similar optimization for Array.

This optimization may be tricky to implement at present because there are only four basic vector representations: Vector.<int>, Vector.<uint>, Vector.<Number>, and Vector.<*>, where the last one is really Vector.<Atom>, but no matter.  We could add Vector.<RCObject> to handle many important cases, see eg bug #601817.
You need to log in before you can comment on or make changes to this bug.