Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Logparser and execution speed

$
0
0

Hi,

I have c# service application which parse exchange message tracking logs. I'm confused about application speed. 10MB file logparser processedapproximately in 2 minutes. When I execute identical query in  logparser command window processing are 3 sec.

There is my code:

ILogRecordset LogList = null; 
ILogRecord LogRecord = null; 
LogQueryClassClass LogWorker = new LogQueryClassClass(); 
COMCSVInputContextClassClass LogParserInput = new COMCSVInputContextClassClass();
LogList = LogWorker.Execute(String.Format("SELECT * FROM '{0}'", MessageTrackingLogsPath, LogParserInput);
for (; !LogList.atEnd(); LogList.moveNext())
{
LogRecord = LogList.getRecord();
}

I have 60GB of log files and 2-3minutes per file for me is not acceptable.  Any ideas how to speed up application?

Viewing all articles
Browse latest Browse all 31927

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>