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

C / C++ / MFC

 
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 
GeneralRe: Fast files Pin
hint_5410-Nov-05 9:30
hint_5410-Nov-05 9:30 
Hi there!
kakan wrote:
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!


By the same order Wink | ;)

1. Ok with that.
2. How do i disable the stack checking?
3. Also ok with that, i'm not using them. Smile | :)

I have also noted that you advise the use of CreateFile, ReadFile, etc instead of f-functions because of theyr limitation. Does that limitation also apply for the open(), read(), write (and so on) functions? And which are faster: Win32-functions or the DOS open/read/open.. ones?

Thx!

hint_54
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 
QuestionRe: Menu items grayed out? Pin
David Crow9-Nov-05 3:05
David Crow9-Nov-05 3:05 

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.