This project has moved. For the latest updates, please go here.
1

Closed

Performance Problems

description

Unfortunately the performance of the lib is quite poor due to the extensive use of regex
 
In the class AsyncTcpDispatcher most of the time is used in
Match statusLineMatch = StatusLineMatch(_receiveRepository.ToString());
 
This causes high CPU loads.
 
Is there another solution besides using regex?
Closed Apr 13, 2014 at 4:24 PM by Scordo

comments

wyssp wrote Jun 12, 2010 at 7:57 PM

ok, just replaced it with a simple "contains" just to see if this is the problem.
My applications runs quite a few queries every 10 seconds. And now instead of 100% CPU (one core) load every 10 seconds it has 2% every 10 seconds.

Scordo wrote Jun 13, 2010 at 8:40 PM

The Regex is used as a static call. This forces the .net framework to compile the regex. So this shouldn't be a problem. Will check this anyway.

wrote Feb 22, 2013 at 12:32 AM

wrote Apr 13, 2014 at 4:24 PM