This project has moved and is read-only. For the latest updates, please go here.


Performance Problems


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 5:24 PM by Scordo


wyssp wrote Jun 12, 2010 at 8: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 9: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 1:32 AM

wrote Apr 13, 2014 at 5:24 PM