Closed Bug 1301198 Opened 8 years ago Closed 8 years ago

Don't return [value, errors] tuples from MessageContext

Categories

(L20n :: JS Library, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stas, Assigned: stas)

Details

(Whiteboard: [gecko-l20n])

Attachments

(1 file)

Always returning a [value, errors] tuples can be costly, especially in the success scenario where the errors array is empty. By optimizing this out we could shave off 2-3 ms off of browser.xul startup. Axel's suggestions was to pass in an additional argument which is a reference to an array of errors.
Assignee: nobody → stas
Comment on attachment 8789080 [details] Bug 1301198 - Don't return [value, errors] tuples from MessageContext. https://reviewboard.mozilla.org/r/77330/#review75666
Attachment #8789080 - Flags: review?(gandalf) → review+
https://hg.mozilla.org/projects/larch/rev/e08d409563b9ffd12712be02a0ac2fa9dae879f8 Bug 1301198 - Don't return [value, errors] tuples from MessageContext. r=gandalf
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.

Attachment

General

Created:
Updated:
Size: