Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS Enterprise Library - Poor Performance

Status
Not open for further replies.

MadJock

Programmer
May 25, 2001
318
GB

Hi,

I'm using the following Micorosoft application blocks within my solution:
- Configuration
- Data Access
- Logging
- Exception Handling
- Security

However, I'm having serious issues with the performance of these blocks.

I've Google'd this issue and have checked that the required services are installed and then removed all instrumentation from the blocks.

Example of performance:
Simple console application using logging block:
Code:
public static void Main(){
  Logger.Write("Test", "Trace");
}

This will take 3 seconds to execute this single call. Any subsequent calls would be faster but still not as quick as opening a test file, writing to it and closing it again.

1000 iterations of the code above would take approx 1 minute as opposed to less than 1 second not using the block.

I expereince the same issue with every block - first call to the block is painfully slow and the rest are better but still not comparatively fast.

Any advice would be greatly appreciated!

Thanks,

Graeme

"Just beacuse you're paranoid, don't mean they're not after you
 
Sounds like a DNS lookup is happening. I haven't looked that closely at the EnterpriseLibrary source code -- are they doing anything with the network when logging? You can probably grep for System.Net to see.

Chip H.


____________________________________________________________________
Click here to learn Ways to help with Tsunami Relief
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top