Avoid spreading trait errors if there are none

RESOLVED FIXED

Status

L20n
JS Library
RESOLVED FIXED
a year ago
a year ago

People

(Reporter: stas, Assigned: stas)

Tracking

Details

(Whiteboard: [gecko-l20n])

(Assignee)

Description

a year ago
It looks like using destructing assignment can be costly if done in hot loops.
(Assignee)

Updated

a year ago
Assignee: nobody → stas
(Assignee)

Comment 1

a year ago
Morphing the bug into a simple optimization in entityFromContext.
Summary: Don't use array destructuring in hot loops → Avoid spreading trait errors if there are none
(Assignee)

Comment 2

a year ago
https://hg.mozilla.org/projects/larch/rev/74b1a3e5535e76b78d19803d0b2e671a4dce49d9
Bug 1300727 - Avoid spreading trait errors if there are none
(Assignee)

Comment 3

a year ago
https://github.com/l20n/l20n.js/commit/5ca5181575698384d1708081c1333a60b982b3f6
Status: NEW → RESOLVED
Last Resolved: a year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.