Use BufferedOutputStream

Review Request #2270 - Created May 27, 2015 and submitted

Information
Sergey Serebryakov
pants
sserebryakov/jar/buffered_os
1596
5ea5282...
Reviewers
pants-reviews
kwlzn, tejal

Using BufferedOutputStream significantly speeds up the JAR creation. See testing section for an example.

Green CI: https://travis-ci.org/pantsbuild/pants/builds/64236409

I used this command for benchmarking (+ flushing caches):

sudo /usr/sbin/purge && ls -alR > /dev/null && ./pants binary --no-use-nailgun macaw-swift/web-app::

Without BOS, the jar-tool step took 105, 112, and 123 seconds.
With BOS, the jar-tool step took 77, 80, and 85 seconds.

John Sirois
Stu Hood
Sergey Serebryakov
John Sirois
Sergey Serebryakov
Review request changed

Status: Closed (submitted)

Loading...