Optimize transient vector creation

Description

This is a very simple optimization around transient []. It avoids copying the empty array.

Performance improvements, for mapv on smallish vectors (5-32) elements anywhere from 20% up to 100% across FF & Chrome.

Environment

None

Assignee

David Nolen

Reporter

Andre R

Labels

Approval

None

Patch

Code

Affects versions

Priority

Minor
Configure