ReadFile speedup

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Here is an EXPERIMENTAL patch supplementing a read-ahead buffer for
ReadFile. With this patch applications reading a file with small packets are
speeded up a lot. For example, wzebra opening database readout :
Before : over 700 seconds
After : 12-13 seconds
I made this to point out that there is something to fix on file reads. This is
a quick fix for this particular program (wzebra). I encounter everybody
interested to keep working on this and fixing this on some better way! I do
not suggest that this should be added to distributed version of wine. It
should be developed (and TESTED!) further before including.
What this does:
1. ReadFile is renamed to ubReadFile (unbuffered)
2. New ReadFile has one static 1k read-ahead buffer for last used file
What this shgould do:
1. Dynamic buffer for every opened file. I did not found code for 'CloseFile'
:-(
ps.
Could you PLEASE add following line to the mailing list archive configuration
file:
- ------------------
spamprotect = 1
- ---------------
I quess it is too late :-(
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE9zlX3uA3ghgc3fUsRArTXAJ0fiv5D/TFBi+ONyyM+fpwglRg59QCgxbLk
e5kXOt/PmX/eEb3FM/qiK7I=
=wQGe
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 5272 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20021110/d94dba40/patch.bin