MD5 digests of very big files
Richmond
richmondmathewson at gmail.com
Sun Jun 27 13:54:21 EDT 2010
On 06/27/2010 08:46 PM, Alejandro Tejada wrote:
> Hi all,
>
> Read this report written by Mark Schonewille:
> http://quality.runrev.com/qacenter/show_bug.cgi?id=2410
>
> Mark Waddingham post this function:
>
> function quasiMD5 pFile
> local tMD5s
> open file pFile for binary read
> repeat
> read from file pFile for 4096 chars
> if the result is EOF then
> exit repeat
> end if
> put the md5digest of it after tMD5s
> end repeat
> close file pFile
> return the md5Digest of tMD5s
> end quasiMD5
>
> But when i run this function, Rev
> consumes all memory available.
>
>
-------------------------------------------------------------
and Mark Waddingham also wrote:
"Some sort of 'stream' abstraction for doing this kind of operation on
files and
the like would be a useful addition and certainly something to consider
for a
future version."
in November 2004.
I wonder if anything further has been done in this area over the last 5
and a half years??????
More information about the use-livecode
mailing list