dagolden/Path-Tiny — pull request #104 by keedi (2014-06-30 02:01:31+00:00)
Title: Reduce memory consumption when diesting a huge file.

I usually use `digest()` method to check my downloaded files such like huge zip archives and ISO images. And I realized that it consumes memory as its file size too late. So out of memory is occurred too often when I tried to digesting big file in a low-end PC like virtual machine.

Current version of digest() method uses `slurp_raw()` to add content to `Digest` object(sorry, it was my fault). If you tried to digest with a huge file, then your memory will be used excessively as your file size. This patch solve the problem by reading 4KB unit each time.

I've used `4096` constant, so if it is not proper value then please adjust it. :)