Isn't that 512 bytes though?
Type: Posts; User: slimtim
Isn't that 512 bytes though?
Just an update:
The latest code uses the fopen switch for sequential scanning, uses setbuf to set the buffers to 64KB and uses fread rather than fgets. A baseline run of the full process took...
The file that gets output from this program is actually then loaded into an Oracle table in a data warehouse. The "some logic" that I referred to earlier is actually very complicated and beyond...
Just tried that and the profiler now reports that the file access (consistently) accounts for 91% of the time!!
Given two input files each with a key and three other "fields":
Master: Updates:
Key Fld1 Fld2 Fld3 Key Fld1 Fld2 Fld3
111 A B C 333 A A A...
Windows 2000 Advanced Server on a Quad Xeon HP ProLiant.
Beginner's luck I guess!
Can I further pick your brains?
I have a C program that matches 2 text files together and applies changes in one to the other.
The "master" file has 130m records and...
There are two examples that use ioCompletionPorts in the platform SDK. One uses a single thread and the second, two threads. They both simply copy a file.
After compiling and trying them both, the...