B
Bjørn Fossum
Hello,
I have a problem writing a bitmap image efficiently to disk, using fwrite()
under Windows Server 2003.
My test image is ~37MB and uses 2.5sec to be written to file on the server.
The same operation with the same image only takes 1.2sec to on my XP
development computer. The opposite relation was expected...
The server in question is a dual cpu, quad core dell server running Server
2003 Web Edition SP2, 2GB RAM etc.
Another strange thing is, when I experimented with this and set the file
mode to text, the time required to get the data to disk fell to 350ms!
This is the code snippet in question:
FILE *fp = fopen(file, "wb");
int size = fwrite(pbits, 1, pixmapsize, fp);
fclose(fp);
Hope someone here can give me a pointer to where this strange behaviour is
originated...
I have a problem writing a bitmap image efficiently to disk, using fwrite()
under Windows Server 2003.
My test image is ~37MB and uses 2.5sec to be written to file on the server.
The same operation with the same image only takes 1.2sec to on my XP
development computer. The opposite relation was expected...
The server in question is a dual cpu, quad core dell server running Server
2003 Web Edition SP2, 2GB RAM etc.
Another strange thing is, when I experimented with this and set the file
mode to text, the time required to get the data to disk fell to 350ms!
This is the code snippet in question:
FILE *fp = fopen(file, "wb");
int size = fwrite(pbits, 1, pixmapsize, fp);
fclose(fp);
Hope someone here can give me a pointer to where this strange behaviour is
originated...