ClojureScript

Omit var reads in statement context

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Patch:
    Code

Description

Attached patch updates cljs emitter to not emit var references in statement context.
That causes toplevel deftypes to not return their generated type, which lets gclosure strip them if unused

cljs helloworld shrinks from ~90K to ~69K

https://groups.google.com/d/topic/clojure/LNfJRw07u8I/discussion

Activity

Herwig Hochleitner made changes -
Field Original Value New Value
Attachment 0001-CLJS-397-var-reads-in-a-statement-context-get-omitte.patch [ 11581 ]
Herwig Hochleitner made changes -
Attachment 0001-var-reads-in-a-statement-context-get-omitted.patch [ 11573 ]
Herwig Hochleitner made changes -
Attachment 0001-CLJS-397-var-reads-in-a-statement-context-get-omitte.patch [ 11581 ]
Herwig Hochleitner made changes -
David Nolen made changes -
Resolution Completed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
David Nolen made changes -
Status Resolved [ 5 ] Closed [ 6 ]

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: