[patch] Buffered seek.
    Adam D. Moss 
    adam at gimp.org
       
    Sat Dec 27 09:37:31 EST 2003
    
    
  
Hello!
The attached patch avoids throwing away our precious buffered
data (and saves an actual abstracted seek() and subsequent re-
buffering) when the user does a seek (forward or backwards) that
is short enough to lay within the currently-buffered region.  The
cost is an abstracted tell() per seek on a buffered handle (very
cheap in real life, I hope).
The patch isn't against HEAD, but it should apply okay.
Regards,
--Adam
-- 
Adam D. Moss   . ,,^^   adam at gimp.org   http://www.foxbox.org/   co:3
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: physfs-bufferseek.patch
URL: <http://icculus.org/pipermail/physfs/attachments/20031227/ef82389e/attachment.diff>
    
    
More information about the physfs
mailing list