help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: md5 checksum of a img file, or get the value of 100th byte


From: Eli Zaretskii
Subject: Re: md5 checksum of a img file, or get the value of 100th byte
Date: Thu, 05 Jun 2008 22:17:02 +0300

> From: Xah <xahlee@gmail.com>
> Date: Thu, 5 Jun 2008 04:29:59 -0700 (PDT)
> 
> I noticed that elisp has a md5 function that does that, but it takes a
> buffer as argument. Does this mean that i have to create a buffer
> first by opening the image file? Would this be very inefficient? since
> all i need is to build a hash table of the image files, with checksum
> as id and file path(s) as value.

Reading the file into a buffer and then working on that buffer is one
of the most efficient operations in Emacs.  After all, this is the
most basic operation of any text editor, so it must be heavily
optimized.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]