Closed Bug 1300727 Opened 8 years ago Closed 8 years ago

Avoid spreading trait errors if there are none

Categories

(L20n :: JS Library, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stas, Assigned: stas)

Details

(Whiteboard: [gecko-l20n])

It looks like using destructing assignment can be costly if done in hot loops.
Assignee: nobody → stas
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
https://github.com/l20n/l20n.js/commit/5ca5181575698384d1708081c1333a60b982b3f6
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.