Click here to Skip to main content
16,004,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Text-to-Speech Pin
Russell'27-Aug-07 21:50
Russell'27-Aug-07 21:50 
QuestionHow to change the space between item object and text in list view ? Pin
Yanshof26-Aug-07 19:23
Yanshof26-Aug-07 19:23 
QuestionHow to forward a variable-argument list to fprintf()? Pin
min_2_max26-Aug-07 15:06
min_2_max26-Aug-07 15:06 
AnswerRe: How to forward a variable-argument list to fprintf()? Pin
Roger Broomfield26-Aug-07 15:55
Roger Broomfield26-Aug-07 15:55 
GeneralRe: How to forward a variable-argument list to fprintf()? Pin
min_2_max26-Aug-07 17:03
min_2_max26-Aug-07 17:03 
QuestionGetting speed in file reading Pin
nadiric26-Aug-07 13:52
nadiric26-Aug-07 13:52 
AnswerRe: Getting speed in file reading Pin
aks.26-Aug-07 17:16
aks.26-Aug-07 17:16 
AnswerRe: Getting speed in file reading Pin
Mark Salsbery26-Aug-07 17:38
Mark Salsbery26-Aug-07 17:38 
As Ajaywinds mentioned, you can get rid of a bit of overhead by using the Windows
file APIs directly, instead of through the ANSI CRT functions.  If you must remain ANSI C compliant
this isn't an option.

I would think anything you can do in RAM will help much more.  Buffer as much as you can into
RAM before parsing, especially if everything you read will be parsed.

Seeking is costly.  If you have to jump all over the place in the file to parse it then performance
will suffer.  Design file layout for serial access if possible.

If you can use file I/O APIs, and the format of the files allows it, consider using overlapped I/O.
You can be parsing data in RAM while data is being read from disk.

Just my 2 cents,
Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

AnswerRe: Getting speed in file reading Pin
Stephen Hewitt26-Aug-07 18:38
Stephen Hewitt26-Aug-07 18:38 
GeneralRe: Getting speed in file reading Pin
nadiric28-Aug-07 12:23
nadiric28-Aug-07 12:23 
AnswerRe: Getting speed in file reading Pin
Waldermort26-Aug-07 19:20
Waldermort26-Aug-07 19:20 
Questionhow to use MFC CArchive Pin
alberthyc26-Aug-07 12:47
alberthyc26-Aug-07 12:47 
AnswerRe: how to use MFC CArchive Pin
Mark Salsbery26-Aug-07 17:13
Mark Salsbery26-Aug-07 17:13 
AnswerSIMPLY USE FILE *fp instead Pin
chandu00427-Aug-07 1:33
chandu00427-Aug-07 1:33 
RantRe: SIMPLY USE FILE *fp instead [modified] Pin
tha_specializt8-Dec-10 3:47
tha_specializt8-Dec-10 3:47 
AnswerRe: how to use MFC CArchive Pin
David Crow27-Aug-07 3:11
David Crow27-Aug-07 3:11 
QuestionFunction list MSVCP60.DLL Pin
fledgeling@be26-Aug-07 9:23
fledgeling@be26-Aug-07 9:23 
QuestionRe: Function list MSVCP60.DLL Pin
David Crow26-Aug-07 10:46
David Crow26-Aug-07 10:46 
AnswerRe: Function list MSVCP60.DLL Pin
fledgeling@be27-Aug-07 11:10
fledgeling@be27-Aug-07 11:10 
QuestionRe: Function list MSVCP60.DLL Pin
David Crow27-Aug-07 11:17
David Crow27-Aug-07 11:17 
AnswerRe: Function list MSVCP60.DLL Pin
Michael Dunn26-Aug-07 10:59
sitebuilderMichael Dunn26-Aug-07 10:59 
GeneralRe: Function list MSVCP60.DLL Pin
fledgeling@be27-Aug-07 11:08
fledgeling@be27-Aug-07 11:08 
GeneralRe: Function list MSVCP60.DLL Pin
Michael Dunn27-Aug-07 11:45
sitebuilderMichael Dunn27-Aug-07 11:45 
Questionhow to detect if html help is closed? Pin
includeh1026-Aug-07 6:10
includeh1026-Aug-07 6:10 
AnswerRe: how to detect if html help is closed? Pin
bob1697226-Aug-07 11:07
bob1697226-Aug-07 11:07 

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.