On Fri, May 25, 2012 at 2:16 PM, Aaron <aaroncrael...@gmail.com> wrote:

> I've noticed that the size of my compiled .js file is well over 100k even
> with advanced optimizations turned on.  I noticed I was using an older
> revision of the clojurescript compiler so I just updated to the latest
> master commit thinking that maybe that would help.  Now my generated
> javascript file is 22k larger.  Why would the newer version be producing
> larger files and is there any plan on the roadmap to try to reduce these
> file sizes?  I would think that since I didn't change any of my code, with
> the proper optimization this new 22k overhead should have been eliminated.
> Is there a general understanding as to why the generated output is so
> large?  I really enjoy using clojurescript and hope that at some point
> there will be a way to have it generate smaller files.


After gzipping a 122k of JS should still be a competitive with a gzipped
jQuery - a common dependency for many websites - so I think we're doing ok
as far as size goes.

Part of the reason the code size has been growing recently is that
ClojureScript now ships with a full set of persistent data structures.
There are other optimizations liked chunked sequences, reducers, and the
reader which also increase the footprint some.

Once the performance work has settled down we plan on taking a deeper look
at issues around dead code elimination -
http://dev.clojure.org/jira/browse/CLJS-257. From some initial
investigation we're certainly not doing the best we could.

Or, if you'd to see that happen sooner we welcome your contribution!

David

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to