Re: WIP: preloading of ispell dictionary

From: Nicolas Barbier <nicolas(dot)barbier(at)gmail(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: WIP: preloading of ispell dictionary
Date: 2010-03-23 07:52:14
Message-ID: b0f3f5a11003230052j613d92a3p7bc3c73e50de94ae@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2010/3/23 Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>:

> 2010/3/23 Takahiro Itagaki <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>:
>
>> The fundamental issue seems to be in the slow initialization of
>> dictionaries. If so, how about adding a pre-complile tool to convert
>> a dictionary into a binary file, and each backend simply mmap it?
>
> It means loading about 25MB from disc. for every first tsearch query -
> sorry, I don't believe can be good.

The operating system's VM subsystem should make that a non-problem.
"Loading" is also not the word I would use to indicate what mmap does.

Nicolas

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2010-03-23 07:58:20 Re: proposal: more practical view on function's source code
Previous Message Pavel Stehule 2010-03-23 07:42:40 Re: WIP: preloading of ispell dictionary