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

C / C++ / MFC

 
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 
Actually file I/O is never done on a byte level. The least bit of information that can be read from ,or written to a file is one sector. A sector is always an even multiple of 128 bytes, the most common sector size is 512 bytes.
So the runtime does buffer (at least) one sector (or more likely, a cluster).
I think the main reason for slowing down file reading a byte at the time, is the function call overhead and all the checks that has to be done, in the runtime, before the runtime can return the byte in question.

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 
QuestionCString concatenation Pin
Kharfax9-Nov-05 6:31
Kharfax9-Nov-05 6:31 
AnswerRe: CString concatenation Pin
Maximilien9-Nov-05 6:47
Maximilien9-Nov-05 6:47 
AnswerRe: CString concatenation Pin
RChin9-Nov-05 6:50
RChin9-Nov-05 6:50 
GeneralRe: CString concatenation Pin
Kharfax9-Nov-05 6:55
Kharfax9-Nov-05 6:55 
AnswerRe: CString concatenation Pin
James R. Twine9-Nov-05 6:57
James R. Twine9-Nov-05 6:57 
QuestionLoss of "Called by"-functionality Pin
Polly Parrot9-Nov-05 5:02
Polly Parrot9-Nov-05 5:02 
QuestionJava problem in hosted IE view... Pin
James R. Twine9-Nov-05 4:08
James R. Twine9-Nov-05 4:08 
QuestionVC6.0 and VS.NET co-existence question Pin
prcarp9-Nov-05 3:20
prcarp9-Nov-05 3:20 

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.