linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* File handling
@ 2002-04-29 22:46 Marius Nita
  2002-04-29 22:57 ` Glynn Clements
  0 siblings, 1 reply; 2+ messages in thread
From: Marius Nita @ 2002-04-29 22:46 UTC (permalink / raw)
  To: linux-c-programming

I have a large text file (45Mb) which needs to be searched through in a decent
amount of time (4-5 seconds.) So far I have some Perl and shell scripts that
search it, but either they are way too slow, or if I try to tweak them to make
them faster, I usually run into low memory problems.

So I was thinking that if I write the program in C I would get better results.
Do you have any suggestions about a way to approach this, pointers about
libraries, etc?

Thanks.
marius

PS: The search is very simple. It just tries to match the exact keywords, case
insensitive, so that's not an issue. It's file reading performance that I'm
worried about.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-29 22:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-29 22:46 File handling Marius Nita
2002-04-29 22:57 ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).