[ClojureScript] Re: Why is each closure library namespace in a separate js file?

2017-01-21 Thread Thomas Heller
I had a similar idea a while back which I called "compact" mode. It would just concatenate all files into one big JS file that would be included in the page. To my surprise this wasn't much faster. Turns out that loading a 6MB JS file (:none) is not much faster than loading 50+ smaller files. Br

[ClojureScript] Re: Are multimethods 'expensive' in light of dead code elimination?

2017-01-21 Thread Thomas Heller
You are correct, no defmethod is ever removed by Closure (and can't be really). You can use :modules to spread them into multiple files, whether or not that is useful depends on your project. Protocols are Closure-compatible and might be an alternate solution if you are worried about code size.

[ClojureScript] Re: Are multimethods 'expensive' in light of dead code elimination?

2017-01-21 Thread Ikuru Kanuma
Thanks for confirming + the tips! -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, s