[comp.sys.amiga] Fseek

john13@garfield.UUCP (John Russell) (01/04/88)

In experimenting further with TableCloth (just sent it off to the moderators),
I noticed some IFF files produced a great amount of drive noise when being
read in, and only in certain places, ie it might be silent for the first
third, then noisy, then silent again.

The method I used was to fseek() past things that I wasn't reading, such as
certain IFF chunks and scanlines from the 3rd, 4th, and 5th bitplanes. Would
the load be greatly speeded up by fread()ing into a scratch area the number of
bytes I would otherwise fseek()?

All the files I tested out before submitting the program behaved very well,
1 and 2 plane images for the most part. However some of the 32 colour pictures
(but not all) take forever to be read in, I would guess due to fseek() being
inherently much slower than just reading the bytes?

John
-- 
" 'Emergency room'! AUUUGGGH! That's where I'll be going."
"It looks like she needs to have this Bonus Round pumped out of her!"
	-- Pat Sajak consoles an unsuccessful Wheel-of-Fortune contestant