Closed Bug 1530420 Opened 5 years ago Closed 4 years ago

Optimize allocation in DataView BigInt accessors

Categories

(Core :: JavaScript Engine, enhancement, P2)

enhancement

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: terpri, Unassigned)

References

Details

Bug 1528582 adds unoptimized WebIDLCast functions that root new BigInts to perform integer conversion. As an optimization, these functions should be updated to convert values to (u)int64 without GC allocation.

Blocks: js-bigint
Priority: -- → P2

Unnecessary GC allocations only take place when the input value is either a Boolean or a String value. And I'm not sure it's crucial to optimise for these two input kinds, because we should expect that most inputs are already BigInt values.

Resolving as WFM per comment #1

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.