Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dynamic memeory aloocation question Pin
neodeaths15-Jan-06 4:31
neodeaths15-Jan-06 4:31 
GeneralRe: dynamic memeory aloocation question Pin
Nish Nishant15-Jan-06 5:35
sitebuilderNish Nishant15-Jan-06 5:35 
GeneralRe: dynamic memeory aloocation question Pin
Roland Pibinger15-Jan-06 5:42
Roland Pibinger15-Jan-06 5:42 
GeneralRe: dynamic memeory aloocation question Pin
Nish Nishant15-Jan-06 6:08
sitebuilderNish Nishant15-Jan-06 6:08 
AnswerRe: dynamic memeory aloocation question Pin
Roland Pibinger15-Jan-06 5:34
Roland Pibinger15-Jan-06 5:34 
QuestionDirectX Pin
AJ12314-Jan-06 22:13
AJ12314-Jan-06 22:13 
AnswerRe: DirectX Pin
CPP_Student15-Jan-06 20:23
CPP_Student15-Jan-06 20:23 
Questionlogger performance Pin
Chintoo72314-Jan-06 22:07
Chintoo72314-Jan-06 22:07 
I have macros LOG1 to LOG5 for logging that aid debugging in my application. However with increased logging my application is effectively getting slowed down, so much to the extent that that application now takes 100 times longer.

While it is very hard to reduce to the number of log messages, i suspected most of the time is spent on writing the log message to the disk. So I implemented a buffered logger that writes to the disk only if the log buffer crosses 1 Mb. Although this has helped, for some reason I am not able to identify, the app is still slower than i am expecting.

Would it help if I offload the disk writing work to another "process" by sending the log messages to that process through a pipe or socket? I am interested in knowning people's experience, and if this will help I would like to know if it is worth implementing.

thanks!
QuestionRe: logger performance Pin
Roland Pibinger15-Jan-06 4:00
Roland Pibinger15-Jan-06 4:00 
AnswerRe: logger performance Pin
Chintoo72315-Jan-06 4:38
Chintoo72315-Jan-06 4:38 
GeneralRe: logger performance Pin
Roland Pibinger15-Jan-06 5:55
Roland Pibinger15-Jan-06 5:55 
GeneralRe: logger performance Pin
Chintoo72315-Jan-06 15:38
Chintoo72315-Jan-06 15:38 
AnswerRe: logger performance Pin
cmk15-Jan-06 18:46
cmk15-Jan-06 18:46 
AnswerRe: logger performance Pin
kakan15-Jan-06 20:08
professionalkakan15-Jan-06 20:08 
QuestionSimulating mouse clicks on SysDateTimePick32 control Pin
Still learning how to code14-Jan-06 21:40
Still learning how to code14-Jan-06 21:40 
AnswerRe: Simulating mouse clicks on SysDateTimePick32 control Pin
Gary R. Wheeler15-Jan-06 4:23
Gary R. Wheeler15-Jan-06 4:23 
GeneralRe: Simulating mouse clicks on SysDateTimePick32 control Pin
Still learning how to code15-Jan-06 22:00
Still learning how to code15-Jan-06 22:00 
GeneralRe: Simulating mouse clicks on SysDateTimePick32 control Pin
Gary R. Wheeler17-Jan-06 16:11
Gary R. Wheeler17-Jan-06 16:11 
Questionhow to draw table? Pin
Ali Tavakol14-Jan-06 21:13
Ali Tavakol14-Jan-06 21:13 
AnswerRe: how to draw table? Pin
includeh1015-Jan-06 3:54
includeh1015-Jan-06 3:54 
GeneralRe: how to draw table? Pin
Ali Tavakol15-Jan-06 20:14
Ali Tavakol15-Jan-06 20:14 
Questionvariable, a simple suggestion to C/C++ beginner Pin
includeh1014-Jan-06 17:13
includeh1014-Jan-06 17:13 
AnswerRe: variable, a simple suggestion to C/C++ beginner Pin
El Corazon14-Jan-06 17:49
El Corazon14-Jan-06 17:49 
GeneralRe: variable, a simple suggestion to C/C++ beginner Pin
Stephen Hewitt14-Jan-06 18:03
Stephen Hewitt14-Jan-06 18:03 
GeneralRe: variable, a simple suggestion to C/C++ beginner Pin
El Corazon14-Jan-06 18:39
El Corazon14-Jan-06 18:39 

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.