make metadata more compressable by using assignment

Bug #736553 reported by Sidnei da Silva
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LAZR Javascript Library
Fix Released
High
Sidnei da Silva

Bug Description

instead of spelling out all objects in json format, use assignment to make it even more compressable. eg:

var info = {},
       REQUIRES = "requires",
       AFTER = "after";
info[REQUIRES] = [...];
info[AFTER] = [...];

Tags: qa-ok

Related branches

Sidnei da Silva (sidnei)
Changed in lazr-js:
assignee: nobody → Sidnei da Silva (sidnei)
Revision history for this message
Robert Collins (lifeless) wrote :

How is that a win?

Changed in lazr-js:
status: New → Incomplete
Revision history for this message
Sidnei da Silva (sidnei) wrote :

The attached branch results in a minified file that's 6.6k, in comparison with a 7.1k file generated with the previous code.

Changed in lazr-js:
status: Incomplete → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in lazr-js:
status: In Progress → Fix Committed
Changed in lazr-js:
importance: Undecided → High
Curtis Hovey (sinzui)
tags: added: qa-ok
removed: qa-needstesting
Changed in lazr-js:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.