Re: Poor md5 module performance
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Poor md5 module performance
- From: Marcin Jurczuk <mjurczuk@...>
- Date: Sun, 7 Nov 2010 22:44:56 +0100
> return fh and md5.sumhexa(io.open(fname,"rb"):read(10485760)) or nil
Try using read("*a").
This will read whole file - a those files have > 500MB usually.
I need only first 10MB to calculate checksum..