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

C / C++ / MFC

 
GeneralRe: Active Accessibility Memory Issue Pin
hawk122810-Mar-09 20:46
hawk122810-Mar-09 20:46 
GeneralProblem reading a Large File Pin
Jason Raymond12-Feb-05 21:21
Jason Raymond12-Feb-05 21:21 
GeneralRe: Problem reading a Large File Pin
Neville Franks12-Feb-05 23:53
Neville Franks12-Feb-05 23:53 
GeneralRe: Problem reading a Large File Pin
Jason Raymond13-Feb-05 11:18
Jason Raymond13-Feb-05 11:18 
GeneralRe: Problem reading a Large File Pin
Neville Franks13-Feb-05 11:45
Neville Franks13-Feb-05 11:45 
GeneralRe: Problem reading a Large File Pin
Neville Franks13-Feb-05 12:33
Neville Franks13-Feb-05 12:33 
GeneralRe: Problem reading a Large File Pin
Michael Dunn13-Feb-05 16:14
sitebuilderMichael Dunn13-Feb-05 16:14 
GeneralRe: Problem reading a Large File Pin
Jason Raymond15-Feb-05 12:44
Jason Raymond15-Feb-05 12:44 
Thanks for your reply. It's just like you said. Judging by the Windows Task Manager, the system is cacheing the file data. As long as the file is smaller than the memory available for the system cache, the execution can keep up. For large files, though, it's getting killed by the swapping.
I switched to FILE_FLAG_NO_BUFFERING. Now I no longer see the system cache filling up, but the transfers have actually slowed down! Does that make any sense?
1. I wrote a loop in which I repeatedly read from the file until the end of the file. It executed fastest when the file was declared as "SEQUENTIAL_SCAN", slowest with "NO_BUFFERING", somewhere in between when "SEQ_SCAN | NO_BUF". I would have expected the last one to be the fastest.
2. I wrote a loop in which I read 1MB into a buffer, then wrote it to a new file. The results weren't conclusive here. I wouldn't be surprised if "NO_BUF" was slower, though. There could be an advantage to cacheing the 1MB of data if you're going to immediately write it back out again.

Please let me know if you have any suggestions.

Best regards,
Jason
GeneralRe: Problem reading a Large File Pin
Mattias G14-Feb-05 5:59
Mattias G14-Feb-05 5:59 
GeneralRe: Problem reading a Large File Pin
Jason Raymond14-Feb-05 15:58
Jason Raymond14-Feb-05 15:58 
Generalfatal error Pin
rasha200312-Feb-05 21:07
rasha200312-Feb-05 21:07 
GeneralRe: fatal error Pin
jabroney12-Feb-05 21:16
jabroney12-Feb-05 21:16 
GeneralRe: fatal error Pin
rasha200312-Feb-05 21:38
rasha200312-Feb-05 21:38 
GeneralTweak Manager Pin
Member 151147112-Feb-05 20:47
Member 151147112-Feb-05 20:47 
Generalquestion on critical section Pin
Anonymous12-Feb-05 17:56
Anonymous12-Feb-05 17:56 
GeneralRe: Correction Pin
Anonymous12-Feb-05 18:11
Anonymous12-Feb-05 18:11 
GeneralRe: Correction Pin
Mohammad A Gdeisat13-Feb-05 5:59
Mohammad A Gdeisat13-Feb-05 5:59 
GeneralRe: Correction Pin
Anonymous13-Feb-05 6:31
Anonymous13-Feb-05 6:31 
GeneralRe: Correction Pin
digwizfox17-Feb-05 7:35
digwizfox17-Feb-05 7:35 
Generalbrowser history Pin
jonavon blakly12-Feb-05 17:24
jonavon blakly12-Feb-05 17:24 
GeneralRe: browser history Pin
Spiritofamerica12-Feb-05 20:08
Spiritofamerica12-Feb-05 20:08 
GeneralProblem with public variables Pin
jw8112-Feb-05 16:51
jw8112-Feb-05 16:51 
GeneralRe: Problem with public variables Pin
bmzhao12-Feb-05 21:48
bmzhao12-Feb-05 21:48 
GeneralRe: Problem with public variables Pin
jw8112-Feb-05 23:39
jw8112-Feb-05 23:39 
GeneralRe: Problem with public variables Pin
jw8115-Feb-05 15:28
jw8115-Feb-05 15:28 

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.