Re: WIP: preloading of ispell dictionary

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <bruce@momjian.us>
Cc: Pavel Stehule <pavel.stehule@gmail.com>, Craig Ringer <craig@postnewspapers.com.au>, Nicolas Barbier <nicolas.barbier@gmail.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2010-03-24T14:46:20Z
Lists: pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> OK, what would the TODO text be?

I think there are really two tasks here:

* preprocess the textual dictionary definition files into something
that can be slurped directly into memory;

* use mmap() instead of read() to read preprocessed files into memory,
on machines where such a syscall is available.

There would be considerable gain from task #1 even without mmap.

			regards, tom lane