Click here to Skip to main content
15,922,007 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WriteFile = slow; fwrite = fast; me = sad; Pin
Neville Franks26-Dec-02 13:57
Neville Franks26-Dec-02 13:57 
GeneralRe: WriteFile = slow; fwrite = fast; me = sad; Pin
Chris Losinger26-Dec-02 14:16
professionalChris Losinger26-Dec-02 14:16 
GeneralRe: WriteFile = slow; fwrite = fast; me = sad; Pin
Neville Franks26-Dec-02 14:39
Neville Franks26-Dec-02 14:39 
GeneralRe: WriteFile = slow; fwrite = fast; me = sad; Pin
Chris Losinger26-Dec-02 15:13
professionalChris Losinger26-Dec-02 15:13 
GeneralRe: WriteFile = slow; fwrite = fast; me = sad; Pin
Neville Franks26-Dec-02 15:50
Neville Franks26-Dec-02 15:50 
GeneralRe: WriteFile = slow; fwrite = fast; me = sad; Pin
Matt Gullett26-Dec-02 15:49
Matt Gullett26-Dec-02 15:49 
GeneralRe: WriteFile = slow; fwrite = fast; me = sad; Pin
Chris Losinger26-Dec-02 19:00
professionalChris Losinger26-Dec-02 19:00 
GeneralRe: WriteFile = slow; fwrite = fast; me = sad; Pin
Michael Dunn26-Dec-02 18:52
sitebuilderMichael Dunn26-Dec-02 18:52 
I took a one-minute glance through fwrite() and it does its own buffering, thus explaining the speed difference. If you can pre-calculate the amount of data you'll be writing, and that amount isn't huge, put it all into a memory-mapped file. That way you can use the same APIs but everything will be in memory.

--Mike--
If it doesn't move and it should: WD-40. If it moves and it shouldn't: duct tape.

1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm

GeneralRe: WriteFile = slow; fwrite = fast; me = sad; Pin
Chris Losinger26-Dec-02 18:59
professionalChris Losinger26-Dec-02 18:59 
GeneralRe: WriteFile = slow; fwrite = fast; me = sad; Pin
Mike Nordell27-Dec-02 1:22
Mike Nordell27-Dec-02 1:22 
GeneralRe: WriteFile = slow; fwrite = fast; me = sad; Pin
Chris Losinger27-Dec-02 6:27
professionalChris Losinger27-Dec-02 6:27 
GeneralControls on an MDI App Pin
Steven M Hunt26-Dec-02 11:51
Steven M Hunt26-Dec-02 11:51 
GeneralLIB from DLL Pin
Hockey26-Dec-02 11:30
Hockey26-Dec-02 11:30 
GeneralRe: LIB from DLL Pin
Neville Franks26-Dec-02 13:06
Neville Franks26-Dec-02 13:06 
GeneralRe: LIB from DLL Pin
Hockey26-Dec-02 17:35
Hockey26-Dec-02 17:35 
GeneralRe: LIB from DLL Pin
Neville Franks26-Dec-02 18:51
Neville Franks26-Dec-02 18:51 
GeneralRe: LIB from DLL Pin
Chris Losinger26-Dec-02 15:15
professionalChris Losinger26-Dec-02 15:15 
GeneralRe: LIB from DLL Pin
Hockey26-Dec-02 17:37
Hockey26-Dec-02 17:37 
GeneralRe: LIB from DLL Pin
Mike Nordell27-Dec-02 1:25
Mike Nordell27-Dec-02 1:25 
Generalthree views + three opengl windows + crashes when fullscreen Pin
bbbilen26-Dec-02 9:54
bbbilen26-Dec-02 9:54 
GeneralRe: three views + three opengl windows + crashes when fullscreen Pin
KaЯl26-Dec-02 23:49
KaЯl26-Dec-02 23:49 
GeneralRe: three views + three opengl windows + crashes when fullscreen Pin
bbbilen29-Dec-02 8:36
bbbilen29-Dec-02 8:36 
Generalc++ and managed c++ Pin
joshfl26-Dec-02 8:30
joshfl26-Dec-02 8:30 
GeneralRe: c++ and managed c++ Pin
AlexO26-Dec-02 8:37
AlexO26-Dec-02 8:37 
GeneralRe: c++ and managed c++ Pin
S O S26-Dec-02 9:47
S O S26-Dec-02 9:47 

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.