Upload: Make computing sha1 five times faster
Upload: Make computing sha1 five times faster

While uploading a file, Yobi computes sha1sum for the file and it was
quite slow. kjkmadness said the reason of slowness is reading each bytes
without buffer as below and I agree with him.

    while (dis.read() != -1)

So Make it faster using 10Kib buffer and simpler using File.read() and
MessageDigest.update() instead of DigestInputStream and
BufferedInputStream.

Here is the performance comparision of sha1 computing while you upload
a 50MiB file.

old way                  1240ms
new way + 1KiB buffer     247ms
new way + 4KiB buffer     237ms
new way + 10KiB buffer    232ms
new way + 100KiB buffer   232ms
new way + 1024KiB buffer  244ms
sha1sum(1)                151ms

yona-projects/yona,ChangsungKim/TestRepository01,violetag/demo,brainagenet/yobi,doortts/forked-for-history,naver/yobi,violetag/demo,Limseunghwan/oss,yona-projects/yona,bloodybear/yona,ihoneymon/yobi,yona-projects/yona,oolso/yobi,doortts/fork-yobi,ChangsungKim/TestRepository01,Limseunghwan/oss,doortts/fork-yobi,doortts/fork-yobi,bloodybear/yona,brainagenet/yobi,ahb0327/yobi,brainagenet/yobi,ahb0327/yobi,oolso/yobi,naver/yobi,ihoneymon/yobi,doortts/fork-yobi,doortts/forked-for-history,bloodybear/yona,ahb0327/yobi,bloodybear/yona,doortts/forked-for-history,yona-projects/yona,Limseunghwan/oss,naver/yobi,ihoneymon/yobi,oolso/yobi