Click here to Skip to main content
15,912,756 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Fast files Pin
QuiJohn9-Nov-05 9:44
QuiJohn9-Nov-05 9:44 
GeneralRe: Fast files Pin
hint_549-Nov-05 9:59
hint_549-Nov-05 9:59 
GeneralRe: Fast files Pin
David Crow9-Nov-05 10:40
David Crow9-Nov-05 10:40 
GeneralRe: Fast files Pin
hint_549-Nov-05 10:51
hint_549-Nov-05 10:51 
GeneralRe: Fast files Pin
kakan9-Nov-05 20:36
professionalkakan9-Nov-05 20:36 
GeneralRe: Fast files Pin
hint_5410-Nov-05 8:59
hint_5410-Nov-05 8:59 
GeneralRe: Fast files Pin
kakan10-Nov-05 19:50
professionalkakan10-Nov-05 19:50 
AnswerRe: Fast files Pin
kakan9-Nov-05 20:51
professionalkakan9-Nov-05 20:51 
Hello.
I would suggest you to:
1.
Get the cluster size of the disk you are using. Then create a buffer of that size. Do all reads and writes (if possible) with the cluster size.
2.
Turn of stack checking, at least for the functions you use most frequently.
3.
Do not, repeat NOT, use time (and cpu) consuming functions in your code. Especially avoid using the (x)printf functions at all times. It's incredibly time and cpu consuming!

Another question: You say there shouldn't be any limitations to the file size. You are aware that the f-funcs has a file size limit of about 4 GB? If you want to avoid that limitaion, the you got to use the real Win32-functions CreateFile, ReadFile etc.
If you decide to use them instead, then you have the possibility to use overlapped I/O, which might speed up the file I/O.

Else, if you stay with the f-funcs, then considder to use the open(), read(), write(), close() e.t.c. They are closer to the file system than the f-funcs (not much, but its worth trying).

Kakan

GeneralRe: Fast files Pin
hint_5410-Nov-05 9:30
hint_5410-Nov-05 9:30 
GeneralRe: Fast files Pin
kakan10-Nov-05 19:41
professionalkakan10-Nov-05 19:41 
QuestionGantt chart Pin
ppp0019-Nov-05 7:01
ppp0019-Nov-05 7:01 
QuestionGantt chart component Pin
ppp0019-Nov-05 6:59
ppp0019-Nov-05 6:59 
AnswerRe: Gantt chart component Pin
hint_549-Nov-05 7:31
hint_549-Nov-05 7:31 
AnswerRe: Gantt chart component Pin
David Crow9-Nov-05 8:38
David Crow9-Nov-05 8:38 
QuestionCString concatenation Pin
Kharfax9-Nov-05 6:31
Kharfax9-Nov-05 6:31 
AnswerRe: CString concatenation Pin
Maximilien9-Nov-05 6:47
Maximilien9-Nov-05 6:47 
AnswerRe: CString concatenation Pin
RChin9-Nov-05 6:50
RChin9-Nov-05 6:50 
GeneralRe: CString concatenation Pin
Kharfax9-Nov-05 6:55
Kharfax9-Nov-05 6:55 
AnswerRe: CString concatenation Pin
James R. Twine9-Nov-05 6:57
James R. Twine9-Nov-05 6:57 
QuestionLoss of "Called by"-functionality Pin
Polly Parrot9-Nov-05 5:02
Polly Parrot9-Nov-05 5:02 
QuestionJava problem in hosted IE view... Pin
James R. Twine9-Nov-05 4:08
James R. Twine9-Nov-05 4:08 
QuestionVC6.0 and VS.NET co-existence question Pin
prcarp9-Nov-05 3:20
prcarp9-Nov-05 3:20 
AnswerRe: VC6.0 and VS.NET co-existence question Pin
John M. Drescher9-Nov-05 3:58
John M. Drescher9-Nov-05 3:58 
QuestionGDI+: Image Save returned Invalid Parameter Pin
raed9-Nov-05 3:13
raed9-Nov-05 3:13 
QuestionMenu items grayed out? Pin
Jesper Knudsen9-Nov-05 2:44
Jesper Knudsen9-Nov-05 2:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.