Re: ifile lexing question

[email protected]
Newsgroups gmane.mail.ifile.general
Message-ID <[email protected]>
"Clemens Fischer" <[email protected]> writes:
> maybe we should ascertain some facts here:  does ifile spend it's time
> reading/writing the data, converting it to internal format or
> manipulating it?  i wouldn't want to waste efforts if mmap(2) were
> what's needed and be sufficient.

Based on my experiments, it looks like ifile spends the most time on
reading/writing the file, and a close second on parsing the contents
into the hashtable and back.  Doing the actual per-message lookup is
pretty fast.

I'm not sure there's a clean way to maintain the internal, dynamic
data structure using mmap.

That said, the ifile control is kind of tangled up; it's going to be a
pretty major effort to separate concerns enough to fully daemonize it,
so doing something half-hearted with mmap might be the easiest road.

Jeremy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.