Re: a path for pystardict(speed up the dict load)

8 views
Skip to first unread message

Serge Matveenko

unread,
Jan 1, 2009, 11:20:19 AM1/1/09
to vicalloy, pysta...@googlegroups.com
On Wed, Dec 31, 2008 at 5:36 PM, vicalloy <zbi...@gmail.com> wrote:
> hi lig:
> a path for pystardict, use regular expression to speed up the dict load.

Hi!

Thank you for this path. As i cannot see any tests of this path in
your letter i will try to make such tests by myself. After that i hope
to see real speed difference.

Unfortunately i cannot see what version this patch for exactly and
going to implement this regexp method manualy.


--
Serge Matveenko
mailto:se...@matveenko.ru
http://serge.matveenko.ru/

pystardict.diff

Serge Matveenko

unread,
Jan 1, 2009, 4:42:44 PM1/1/09
to pysta...@googlegroups.com, vicalloy
---------- Forwarded message ----------
From: vicalloy <zbi...@gmail.com>
Date: Thu, Jan 1, 2009 at 9:29 PM
Subject: Re: a path for pystardict(speed up the dict load)
To: s...@matveenko.ru


2009/1/2 Serge Matveenko <se...@matveenko.ru>:


> On Wed, Dec 31, 2008 at 5:36 PM, vicalloy <zbi...@gmail.com> wrote:
>> hi lig:
>> a path for pystardict, use regular expression to speed up the dict load.
>
> Hi!
>
> Thank you for this path. As i cannot see any tests of this path in
> your letter i will try to make such tests by myself. After that i hope
> to see real speed difference.
>
> Unfortunately i cannot see what version this patch for exactly and
> going to implement this regexp method manualy.

a new path(a litter change).
this path is for the laster pystardict version.
t.py -- speed test for regexp
t2.py -- speed test for old arithmetic.

my test result
30M idx
t.py -- 20s
t2.py --50s

pystardict.diff
t.py
t2.py
pystardict.py

Serge Matveenko

unread,
Jan 1, 2009, 4:45:13 PM1/1/09
to pysta...@googlegroups.com
> a new path(a litter change).
> this path is for the laster pystardict version.
> t.py -- speed test for regexp
> t2.py -- speed test for old arithmetic.
>
> my test result
> 30M idx
> t.py -- 20s
> t2.py --50s

i've already implement it with some fixes.
look for latest master git tree here
http://github.com/lig/pystardict/tree/master

Reply all
Reply to author
Forward
0 new messages