We're updating the issue view to help you get more done. 

Don't flush for every emitted line

Description

When profiling compilation, java.io.BufferedWriter.flush() shows up near the top of the profile, with the root cause being the println here:

https://github.com/clojure/clojurescript/blob/d4db18970c8eec587b2c9e022034983e29eb8e81/src/main/clojure/cljs/compiler.cljc#L206

It is probably not important to flush every line of emitted JavaScript while compiling, and binding flush-on-newline to false here eliminates this from the top of the profile.

Environment

None

Status

Assignee

David Nolen

Reporter

Mike Fikes

Labels

Approval

None

Patch

Code

Priority

Minor