[z3-five] Re: Some design questions
Andreas Jung
lists at andreas-jung.com
Mon Apr 18 22:32:50 MEST 2005
--On Montag, 18. April 2005 19:58 Uhr +0200 Philipp von Weitershausen
<philipp at weitershausen.de> wrote:
> german_stopwords = zapi.getUtility(IStopWords, 'de')
>
> So, in short, all stop-word objects are utilities that provide IStopWords
> and their registration name is the country/language code. The same thing
> would most probably make sense for converters (utility name would be the
> mime type) and the parsers (name would be the country/language code
> again).
Utilities are available in Five?
>
>> Another problem is efficiency....if an index handles only one
>> language then subsequent lookups for the same language dependant
>> classes (always the german stopwords etc.) must be cached somehow (it
>> does not make sense to re-read the same stopword files over and over
>> again).
>
> I can only recommend one thing, especially when you're doing a rewrite of
> something: Write clean code first and optimize later!
Of course but I know where the problems are so it does not make sense to
reimplement
an inefficient implementation again :-)
-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://codespeak.net/pipermail/z3-five/attachments/20050418/c915af85/attachment.bin
More information about the z3-five
mailing list