On Mon, Oct 28, 2013 at 9:05 AM, Julien Eluard <julien.elu...@gmail.com>wrote:
> Compilation is super fast in optimizations :none mode. A dumb change will > be compiled in below a second. Now the same change in optimizations :simple > takes 30 s. > Is that expected? Is it worth my time to investigate that? > :simple was never fast especially from a cold start, and if you have source maps enabled it's going to be even slower as we need to merge two source maps. All this applies to :advanced as well. I just ran a :simple test and after a couple of runs, it takes about 4 seconds for recompile of a trivial file. Without :source-map, cold start takes 15 seconds, and after a couple of runs recompile takes ~1.7s on my machine. Happy to take patches that close the gap, however nothing immediately comes to mind that could improve the situation at least for auto builds - we cache source map information in memory. Of course we might be doing something silly and that would require some investigation. > Also I am not entirely clear when the output-dir property should be used > and how it interacts with output-to and source-map. Could you clarify that? > > Thanks, > Julien :output-to generates the entry point file regardless of optimization level. :output-dir options will construct the incremental compilation cache directory - I would probably set it explicitly regardless of :optimization level. 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.