Merge lp:~rockstar/phazr/string-constants into lp:phazr
Proposed by
Paul Hummer
Status: | Merged |
---|---|
Approved by: | Paul Hummer |
Approved revision: | 16 |
Merged at revision: | 15 |
Proposed branch: | lp:~rockstar/phazr/string-constants |
Merge into: | lp:phazr |
Diff against target: |
246 lines (+66/-43) 3 files modified
src/editableplugin/js/editable.js (+29/-20) src/formplugin/js/form.js (+20/-13) src/phazroverlay/js/overlay.js (+17/-10) |
To merge this branch: | bzr merge lp:~rockstar/phazr/string-constants |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Deryck Hodge | code | Approve | |
Review via email: mp+74545@code.launchpad.net |
Commit message
Consolidate duplicate strings for better compressability.
Description of the change
So this evening I wrote this little tool[1] to detect duplicate strings in javascript files. Ideally, our compressor would detect these and figure it out for us, but that's the future, not the present. I used this tool on the phazr files to see where we might have duplicate strings, and then made "constants" out of them. It's a trivial thing, but something I think is still beneficial, at least until our compressor does it.
To post a comment you must log in.
Looks good. Cool idea for a little tool, too.