Flac and Audio CD Health Checks
In ,
Jim Lesurf wrote:
A question occurs to me prompted by the way the Flack Health Check program
works. (And which I may also use for CD Health Check.)
In operations it relies on writing a tempory file, reading back its
contents, deleting the file, then repeating the process. The 'cycle' takes
somewhat less than a second per tempfile.
Is the file really necessary? If you want to avoid touching the disk
[1], the best way is to avoid using a file. Does the program that reads
the file need to seek around in it, or can it just read it serially? If
the reader and writer are separate programs use a pipe. If they're the
same program just use a RAM buffer. If the files are small enough to
consider using a RAM disk there's no reason not to just load the whole
thing into RAM anyway.
[1] AIUI that's the accepted spelling even in British English for
computer storage devices.
|