linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marius Nita <marius@cs.pdx.edu>
To: linux-c-programming@vger.kernel.org
Subject: File handling
Date: Mon, 29 Apr 2002 15:46:10 -0700	[thread overview]
Message-ID: <20020429154610.B24899@cs.pdx.edu> (raw)

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.


             reply	other threads:[~2002-04-29 22:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-29 22:46 Marius Nita [this message]
2002-04-29 22:57 ` File handling Glynn Clements

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020429154610.B24899@cs.pdx.edu \
    --to=marius@cs.pdx.edu \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).