[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#96102: ITP: serpento -- dictd server written in python



On Sat, May 05, 2001 at 12:24:56PM +0200, I wrote:
> On Fri, May 04, 2001 at 09:19:29AM +0200, Tollef Fog Heen wrote:
> > * Radovan Garabik 
> > 
> > | > Can it be run from inetd? I'm really dying for a dict server that can be
> > | 
> > | More or less, yes, it can, but currently it is a bit unusable
> > | since it takes forever to start (it has to parse the index file(s),
> > | and parsing is written in python - rewritting it in C is on my TODO list)
> > 
> > Why not just using cPickle and smart caching?  It's pretty fast, ime.
> > 
> 
> well, that is a _really_ good idea, shame it did not occur to me :-)
> I am going to experiment with it a bit
> 

And it's done - using cPickle cut down startup time from 15 seconds
to about 4 sec.
Then I changed initialization to parse/unpickle index files only 
when the database is accessed for the first time, and 
startup time went down to about 1 second for biggest dictionary
(webster). All on PIII 600 MHz with plenty of memory (i.e. 
all necessary files were already in buffer cache)

Package is in incoming, you have to set up manually inetd.conf if
you want to run it from inetd (this will be improved later)

Also, it includes its own dictdconfig now, so automatic configuration
to include all installed databases should work.

-- 
 -----------------------------------------------------------
| Radovan Garabik http://melkor.dnp.fmph.uniba.sk/~garabik/ |
| __..--^^^--..__    garabik @ melkor.dnp.fmph.uniba.sk     |
 -----------------------------------------------------------
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!



Reply to: