Click here to Skip to main content
15,891,431 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading XML Pin
Wendelius10-Nov-08 8:41
mentorWendelius10-Nov-08 8:41 
GeneralRe: Reading XML Pin
Planker10-Nov-08 9:06
Planker10-Nov-08 9:06 
GeneralRe: Reading XML Pin
Wendelius10-Nov-08 9:13
mentorWendelius10-Nov-08 9:13 
QuestionLog4Net AsyncAppender Pin
fdbpro10-Nov-08 2:18
fdbpro10-Nov-08 2:18 
AnswerRe: Log4Net AsyncAppender Pin
Simon P Stevens10-Nov-08 2:54
Simon P Stevens10-Nov-08 2:54 
GeneralRe: Log4Net AsyncAppender Pin
fdbpro10-Nov-08 19:22
fdbpro10-Nov-08 19:22 
GeneralRe: Log4Net AsyncAppender Pin
Simon P Stevens10-Nov-08 21:44
Simon P Stevens10-Nov-08 21:44 
AnswerRe: Log4Net AsyncAppender Pin
Dave Kreskowiak10-Nov-08 3:51
mveDave Kreskowiak10-Nov-08 3:51 
That depends on the implementation of Log4Net. Async operations are run on a background thread. Creating new threads is an expensive operation. The performances hit is probably there. If Log4Net is creating it's own threads, then you've found the problem. If it's already using the managed thread pool, that runs a bit quicker since the threads are already created. They're just waiting around for some code to run.

Also, you've not going to get better performance than just calling the blocking method of the library. All Async operations have an overhead to setup the background worker that the equivilent blocking call doesn't have to go through.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Log4Net AsyncAppender Pin
fdbpro10-Nov-08 19:14
fdbpro10-Nov-08 19:14 
GeneralRe: Log4Net AsyncAppender Pin
Simon P Stevens10-Nov-08 22:07
Simon P Stevens10-Nov-08 22:07 
GeneralRe: Log4Net AsyncAppender Pin
fdbpro10-Nov-08 23:35
fdbpro10-Nov-08 23:35 
Questionexport to bitmap Pin
vinay_K10-Nov-08 2:07
vinay_K10-Nov-08 2:07 
AnswerRe: export to bitmap Pin
Guffa10-Nov-08 3:25
Guffa10-Nov-08 3:25 
GeneralRe: export to bitmap Pin
vinay_K10-Nov-08 17:35
vinay_K10-Nov-08 17:35 
GeneralRe: export to bitmap Pin
Guffa10-Nov-08 20:28
Guffa10-Nov-08 20:28 
GeneralRe: export to bitmap Pin
vinay_K10-Nov-08 23:41
vinay_K10-Nov-08 23:41 
Questioni want to get the screen position of the desktop Pin
prasadbuddhika10-Nov-08 0:54
prasadbuddhika10-Nov-08 0:54 
AnswerRe: i want to get the screen position of the desktop Pin
Simon P Stevens10-Nov-08 0:59
Simon P Stevens10-Nov-08 0:59 
QuestionWindows Form Pin
Michael Bookatz10-Nov-08 0:35
Michael Bookatz10-Nov-08 0:35 
AnswerRe: Windows Form Pin
Simon P Stevens10-Nov-08 1:17
Simon P Stevens10-Nov-08 1:17 
AnswerRe: Windows Form Pin
Dave Kreskowiak10-Nov-08 3:46
mveDave Kreskowiak10-Nov-08 3:46 
QuestionShared Document Pin
Sperneder Patrick9-Nov-08 22:54
professionalSperneder Patrick9-Nov-08 22:54 
AnswerRe: Shared Document Pin
Simon P Stevens9-Nov-08 23:42
Simon P Stevens9-Nov-08 23:42 
AnswerRe: Shared Document Pin
Brij10-Nov-08 0:04
mentorBrij10-Nov-08 0:04 
QuestionDistinct LINQ questions Pin
Programm3r9-Nov-08 22:49
Programm3r9-Nov-08 22:49 

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.