There's a better 'fix'. Run your builds on SSDs or on a memory based file system.
With the RAM available these days, any build can be done on a memory based file system. It speeds up every step by a huge factor. Not only compilation. You only need to copy your targets to a 'permanent' place. We have been doing this for years to shrink build times. We AOT most of our code base. Luc P. > I'll just say one more time that the team should really consider doing > bug-fix releases in the future. This problem sounds serious enough to be > handled as quickly as possible. Clojure 1.6 was released over one year ago, > so I'm guessing 1.8 is more than a year away from now. Waiting for major > releases for a bug fix in not exactly the greatest user experience. > > On 9 May 2015 at 05:18, Alexander Hudek <a...@diligenceengine.com> wrote: > > > I'd like to chime in here in support of this, our company has been running > > a modified clojure build because of this for over a year now. > > > > Alex > > > > > > On Friday, May 8, 2015 at 2:12:50 PM UTC-4, Martin Raison wrote: > >> > >> Hi all, > >> > >> This issue has been around for a while without much activity, although a > >> very simple fix is already there: > >> http://dev.clojure.org/jira/browse/CLJ-703 > >> > >> We have a pretty big Clojure project that we compile on machines with > >> slow hard-drives, on CentOS 6. We noticed that compilation had become > >> extremely slow, however CPU usage was always below 10%. > >> > >> Simply removing the line "cfs.getFD().sync();" inside > >> "src/jvm/clojure/lang/Compiler.java" > >> dramatically improved the compilation time (Something like 10x, although at > >> this level of increase, measurement almost doesn't make sense anymore :)). > >> > >> We've been using the suggested fix (remove-sync-only.patch) for a few > >> weeks and haven't observed any issues. > >> > >> It seems we should really figure out whether this line is actually > >> necessary, or if it was added there "just in case". Even if some situations > >> require it, the speed bump is so huge that we might want some special-case > >> logic. > >> > >> Martin > >> > > -- > > 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/d/optout. > > > > -- > 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/d/optout. > -- Luc Prefontaine<lprefonta...@softaddicts.ca> sent by ibisMail! -- 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/d/optout.