Module darkplaces: Change committed

molivier at icculus.org molivier at icculus.org
Tue Dec 30 08:00:58 EST 2003


Commiter   : molivier
CVSROOT    : /cvs/cvsroot/twilight
Module     : darkplaces
Commit time: 2003-12-30 13:00:58 UTC

Log message:

Factorized the file searching algorithm in the FS code. Sorted packaged files list at load time to allow the use of a binary search. Overall, I think you can expect a file search time divided by a factor between 1.5 to 3 depending on your mod and packages layout. Time lost in the file search code on my P233MMX: vanilla Quake (4121 searches while loading the 1st demo): 2.7 sec -> 1.6 sec, Transfusion mod (9752 searches while loading BB1): 18.0 sec -> 7.6 sec

Modified files:
     fs.c
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: darkplaces.20031230.130058.molivier.diff
URL: <http://icculus.org/pipermail/twilight-commits/attachments/20031230/4bfa00ce/attachment.diff>


More information about the twilight-commits mailing list