Click here to Skip to main content
15,909,591 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Fast files Pin
David Crow9-Nov-05 8:34
David Crow9-Nov-05 8:34 
GeneralRe: Fast files Pin
hint_549-Nov-05 9:15
hint_549-Nov-05 9:15 
General[Message Deleted] Pin
Mathieu Dijkstra9-Nov-05 9:31
Mathieu Dijkstra9-Nov-05 9:31 
GeneralRe: Fast files Pin
David Crow9-Nov-05 9:49
David Crow9-Nov-05 9:49 
GeneralRe: Fast files Pin
hint_549-Nov-05 10:06
hint_549-Nov-05 10:06 
GeneralRe: Fast files Pin
David Crow9-Nov-05 10:17
David Crow9-Nov-05 10:17 
GeneralRe: Fast files Pin
hint_549-Nov-05 10:31
hint_549-Nov-05 10:31 
GeneralRe: Fast files Pin
James R. Twine9-Nov-05 17:05
James R. Twine9-Nov-05 17:05 
   Using MMF can still improve performance, because you do not have to do the manual loading of data into a buffer - the OS basically does it for you.  For example, if you were reading the file in 4KB chunks, you would be allocating a 4K buffer, copying from the file into that buffer, and then likely processing the contents of the buffer using the buffer's address.  Using a MMF does that work for you.

   If you want to impose a limit on the size of the MMF section you want to create, that is fine.  Choose a limit, say 2MB (or 4Mb, or 64MB, whatever).  If the file is 2MB or smaller, you can MM the entire file.  Of not, you can MM 2MB sections of the file one at a time.

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
GeneralRe: Fast files Pin
hint_5410-Nov-05 7:52
hint_5410-Nov-05 7:52 
AnswerRe: Fast files Pin
James R. Twine9-Nov-05 16:59
James R. Twine9-Nov-05 16:59 
GeneralRe: Fast files Pin
David Crow10-Nov-05 2:42
David Crow10-Nov-05 2:42 
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 
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 

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.