Click here to Skip to main content
15,921,174 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Yaba-daba-du! Pin
RomTibi17-Jan-09 22:42
RomTibi17-Jan-09 22:42 
GeneralRe: Yaba-daba-du! Pin
RomTibi17-Jan-09 22:41
RomTibi17-Jan-09 22:41 
GeneralRe: Yaba-daba-du! Pin
ThatsAlok18-Jan-09 18:15
ThatsAlok18-Jan-09 18:15 
GeneralRe: Yaba-daba-du! Pin
RomTibi21-Jan-09 7:52
RomTibi21-Jan-09 7:52 
Questionmultithread Pin
RomTibi17-Jan-09 0:02
RomTibi17-Jan-09 0:02 
AnswerRe: multithread Pin
Garth J Lancaster17-Jan-09 0:41
professionalGarth J Lancaster17-Jan-09 0:41 
GeneralRe: multithread Pin
RomTibi17-Jan-09 2:43
RomTibi17-Jan-09 2:43 
QuestionDisk operation performance question [modified] Pin
followait16-Jan-09 23:07
followait16-Jan-09 23:07 
When the file is first open a read all around, it take about 40s. (The file is about 100MB)
Then I re-run it, it takes less than 1s.
And I tried to read the another file in the same directory, it takes less than 1s.
(the 2nd file is about 80MB).

Is it caused by the disk cache?
But I think the os should cache contents for the file under reading,
because the file is not necessary continuous on the disk.
So how could the 2nd file be read so fast? Because the os cache files in the same directory?
In my experince, some times it seems true, and sometimes not.
Is there any guide to make good use of the cache?

And I'm going to use the file mapping mechanism, will it be much faster?
PS: The size per file is about 100MB, and total size in one directory is about 1GB.

modified on Saturday, January 17, 2009 5:14 AM

AnswerRe: Disk operation performance question Pin
Iain Clarke, Warrior Programmer16-Jan-09 23:37
Iain Clarke, Warrior Programmer16-Jan-09 23:37 
GeneralRe: Disk operation performance question Pin
followait17-Jan-09 0:41
followait17-Jan-09 0:41 
AnswerRe: Disk operation performance question Pin
Stuart Dootson16-Jan-09 23:44
professionalStuart Dootson16-Jan-09 23:44 
GeneralRe: Disk operation performance question Pin
followait17-Jan-09 0:38
followait17-Jan-09 0:38 
GeneralRe: Disk operation performance question Pin
Stuart Dootson17-Jan-09 0:49
professionalStuart Dootson17-Jan-09 0:49 
QuestionAPI to close any window using c++ win32 Pin
Subrat 470826616-Jan-09 16:39
Subrat 470826616-Jan-09 16:39 
AnswerRe: API to close any window using c++ win32 Pin
«_Superman_»17-Jan-09 17:32
professional«_Superman_»17-Jan-09 17:32 
AnswerRe: API to close any window using c++ win32 Pin
Hamid_RT18-Jan-09 22:53
Hamid_RT18-Jan-09 22:53 
GeneralRe: API to close any window using c++ win32 Pin
Subrat 470826619-Jan-09 2:35
Subrat 470826619-Jan-09 2:35 
GeneralRe: API to close any window using c++ win32 Pin
Hamid_RT20-Jan-09 19:10
Hamid_RT20-Jan-09 19:10 
GeneralRe: API to close any window using c++ win32 Pin
Subrat 470826619-Jan-09 2:39
Subrat 470826619-Jan-09 2:39 
GeneralRe: API to close any window using c++ win32 Pin
Hamid_RT20-Jan-09 19:11
Hamid_RT20-Jan-09 19:11 
QuestionDate Recovery Programming Pin
xavier198816-Jan-09 14:09
xavier198816-Jan-09 14:09 
AnswerRe: Date Recovery Programming Pin
Garth J Lancaster17-Jan-09 1:06
professionalGarth J Lancaster17-Jan-09 1:06 
GeneralRe: Date Recovery Programming Pin
xavier198817-Jan-09 1:33
xavier198817-Jan-09 1:33 
QuestionDetermine When a Print Job has been Cancelled Pin
michaelerice16-Jan-09 7:41
michaelerice16-Jan-09 7:41 
QuestionCPropertyPage/CPropertySheet Issues Pin
somasundarambe16-Jan-09 7:34
somasundarambe16-Jan-09 7:34 

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.