[CLJ-668] Improve slurp performance by using native Java StringWriter and jio/copy Created: 01/Nov/10 Updated: 21/Apr/14
|Affects Version/s:||Release 1.3|
|Labels:||io, newbie, performance|
Instead of copying each character from InputReader to StringBuffer.
|Comment by Alex Miller [ 21/Apr/14 3:28 PM ]|
This is double-better with the changes in Clojure 1.6 to improve jio/copy performance by using the NIO impl. Rough timing difference on a 25M file: old= 2316.021 msecs, new= 93.319 msecs.
Filer did not supply a patch and is not a contributor. If someone wants to make a patch (and better timing info demonstrating performance improvements), that would be great.