472,146 Members | 1,427 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,146 software developers and data experts.

Searching in Logs

I have recently developed an application in c witch acts like a
system logger for windows 2003 server domain controllers and my problem
is that of the size.
In a normal day my program produces more than 3-4 Mb of data in plain
text, and you can imagine that interpreting or getting information from
such a big file is time consuming, that's why I tryed to implement some
archiving functionality.
My question is if someone knows a fast string searching method in C (
Boyer-Moore ? ) and how do I implement pattern searching ( witch would
be 40% faster than Boyer-Moore )!

Nov 15 '05 #1
1 1117
Pacher R. Dragos wrote:

<snip>
My question is if someone knows a fast string searching method in C (
Boyer-Moore ? ) and how do I implement pattern searching ( witch would
be 40% faster than Boyer-Moore )!


This is not an algorithms group, so selecting the right algorithm and
discussing algorithms is not on topic. Nor are non-standard libraries.
If you attempt to implement an algorithm and have problems with your
coding we can then help you with the coding. comp.programming might be a
better place to start, although you should read their FAQ and a few days
posts before asking there.

<OT>
For pattern matching you could try the pcre library which is available
on both Windows and *nix, but don't ask here about how to use it.
</OT>
--
Flash Gordon
Living in interesting times.
Although my email address says spam, it is real and I read it.
Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by Ludwig77 | last post: by
2 posts views Thread by Peter Sands | last post: by
6 posts views Thread by paul | last post: by
2 posts views Thread by dayjah | last post: by
4 posts views Thread by madzambonis | last post: by
reply views Thread by Saiars | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.