Click here to Skip to main content
15,910,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: using string instead of char Pin
lordmickel27-Sep-04 13:43
lordmickel27-Sep-04 13:43 
GeneralRe: using string instead of char Pin
David Crow28-Sep-04 4:52
David Crow28-Sep-04 4:52 
GeneralRe: using string instead of char Pin
lordmickel5-Oct-04 11:12
lordmickel5-Oct-04 11:12 
GeneralFast work: OVERLAPPED vs MEMORY MAPPED Pin
Scott H. Settlemier27-Sep-04 9:41
Scott H. Settlemier27-Sep-04 9:41 
GeneralRe: Fast work: OVERLAPPED vs MEMORY MAPPED Pin
Rick York27-Sep-04 10:10
mveRick York27-Sep-04 10:10 
GeneralRe: Fast work: OVERLAPPED vs MEMORY MAPPED Pin
cmk27-Sep-04 11:26
cmk27-Sep-04 11:26 
GeneralRe: Fast work: OVERLAPPED vs MEMORY MAPPED Pin
peterchen27-Sep-04 13:57
peterchen27-Sep-04 13:57 
GeneralRe: Fast work: OVERLAPPED vs MEMORY MAPPED Pin
Scott H. Settlemier28-Sep-04 14:28
Scott H. Settlemier28-Sep-04 14:28 
It's a generic class for all instances of work that's i/o bound.
Specific uses are filters and hashes which take a score or so
of cycles per byte of data. (much less than time to read the data)

I'm allocating the buffers on the stack and using overlapped i/o
but wasn't sure if the operating system was actually able to
asynchronously read the data or if just spawned another thread to
do it.

If it's just another thread, for a single processor, it'd seem
better to just use a memory mapped file right? No overhead for
the wait operations and processor is fully tied up reading
(on each page fault) or processing.

If overlapped i/o really is asynchronous on a single processor,
then what I've got now should be optimal.

Also I wonder, if the OS has the capability for real asynchronous
reads on a single processor, would it be using that to help
page in from a memory mapped file? Maybe the memory mapped file
can match the overlapped i/o technique because the os is smart?
(opened with sequential access for clue? I doubt but wonder.)


(yeah buffer sizes are calculated for optimal size-- you have to
pass working block size, processing cost and wait cost (about 10K
cycles I found from experiments on XP) for the overlapped i/o--
it can be shown that optimal # of rounds is independent of read
cost assuming that it's greater than processing cost.)

Thanks!
GeneralSkipping Bytes When Reading Files Pin
InflatableGarfield27-Sep-04 9:20
InflatableGarfield27-Sep-04 9:20 
GeneralRe: Skipping Bytes When Reading Files Pin
Scott H. Settlemier27-Sep-04 9:43
Scott H. Settlemier27-Sep-04 9:43 
GeneralRe: Skipping Bytes When Reading Files Pin
shaileshkumar27-Sep-04 20:59
shaileshkumar27-Sep-04 20:59 
GeneralRe: Skipping Bytes When Reading Files Pin
David Crow28-Sep-04 5:02
David Crow28-Sep-04 5:02 
QuestionPlaySound crash under Win ME? Pin
LukeV27-Sep-04 8:24
LukeV27-Sep-04 8:24 
GeneralSockets and future portability Pin
Ivanets27-Sep-04 8:09
Ivanets27-Sep-04 8:09 
GeneralRe: Sockets and future portability Pin
cmk27-Sep-04 11:39
cmk27-Sep-04 11:39 
GeneralRadio buttons in Treeview (like the Folder Optionsin Windows Explorer) Pin
klkeng27-Sep-04 7:00
klkeng27-Sep-04 7:00 
GeneralADO Crashing big time! Pin
Chris Ulliott27-Sep-04 6:30
Chris Ulliott27-Sep-04 6:30 
GeneralRe: ADO Crashing big time! Pin
Anonymous27-Sep-04 7:04
Anonymous27-Sep-04 7:04 
GeneralRe: ADO Crashing big time! Pin
Chris Ulliott27-Sep-04 23:46
Chris Ulliott27-Sep-04 23:46 
Generalaaa Pin
Anonymous27-Sep-04 6:25
Anonymous27-Sep-04 6:25 
Generalbbb Pin
ThatsAlok27-Sep-04 19:27
ThatsAlok27-Sep-04 19:27 
GeneralDettecting Change to windows appearance / XP styles Pin
Tristan Rhodes27-Sep-04 6:25
Tristan Rhodes27-Sep-04 6:25 
GeneralRe: Dettecting Change to windows appearance / XP styles Pin
Yves Tkaczyk27-Sep-04 7:51
Yves Tkaczyk27-Sep-04 7:51 
GeneralRe: Dettecting Change to windows appearance / XP styles Pin
Tristan Rhodes27-Sep-04 8:24
Tristan Rhodes27-Sep-04 8:24 
QuestionHow to load own bitmap icon in place of miscrosoft default image in VC++ application Pin
mnarayan27-Sep-04 6:10
mnarayan27-Sep-04 6:10 

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.