Subject: searching techniques for a parser.....

A

anu

helloo
iam working on a parser wherein i search for a few strings in
thousands of lines...
ie i have an open fifo from which i keep receiving lines and lines of
data and iam supposed to search for a few strings(around 50 strings)
in every line.
just wanted to take ur opinion which sorting technique should i use...
or if u guys have any examples that would be an extra help...
 
C

CBFalconer

anu said:
iam working on a parser wherein i search for a few strings in
thousands of lines...
ie i have an open fifo from which i keep receiving lines and lines of
data and iam supposed to search for a few strings(around 50 strings)
in every line.
just wanted to take ur opinion which sorting technique should i use...
or if u guys have any examples that would be an extra help...

I is normally capitalized, unless you are e.e.cummings. I fail to
see the relationship of the kingdom of Ur to this request. I have
heard of u bolts, but not u guys. I.e. please use proper English,
not deliberately malformed and hard to read abbreviations. This
assumes that you really want people to read your question.

Take a look at the techniques used in id2id to handle multiple
identifiers in a single read of a file. Neither sorting nor input
line buffers are needed. See:

<http://cbfalconer.home.att.net/download/id2id-20.zip>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top