Click here to Skip to main content
15,903,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
followait wrote:
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.


If you read the whole of the file into memory at once, file mapping isn't much faster in my experience. Best thing to do is abstract the file accessing mechanism into a separate class or module, so you can change it without impacting the rest of your code. Then you can try both methods and do some objective measurement - that's the best way to tell which approach is better for your scenario.
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 
AnswerRe: CPropertyPage/CPropertySheet Issues Pin
KalMN28-Jan-09 5:38
KalMN28-Jan-09 5:38 
Questioncout for japanese messages Pin
NET/C++Developer16-Jan-09 3:56
NET/C++Developer16-Jan-09 3:56 
AnswerRe: cout for japanese messages Pin
Maximilien16-Jan-09 5:06
Maximilien16-Jan-09 5:06 

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.