On Wednesday 22 May 2002 09:08 am, Konstantin Piroumian wrote:
> As I've said, really cool abstractions (a Bundle and not XMLResourceBundle)
> were never been finalized and remained in Avalon scratchpad.

Right, I looked at it and it was more complex than I was needing at the time.

> Did you use the 'cache-at-startup' configuration parameter? I was sure that
> it was for exactly the same thing, though my information can be our of
> date, hadn't a look at it for a long time. Also, I can remember some
> Hashtables there, they should be replaced by HashMaps too.

Yes, I did. It just moves the speed hit around a bit :)

Also due to how we use the I18nTransformer, we pass our content through 
multiple times (2-3) with the first stage generating lots of misses, also 
expensive time-wise.

> Yes, that would be fine! I think that the best thing would be to separate
> dictionary handling from the transformer at all and use either a custom
> source, say: <transform src="i18n:db:/catalogue/messages" /> or <transform
> src="i18n:xml:/catalogue/messages" />, or configure it like an SQL
> connection and use a short name of it for the transformer
> configuration/parameterization:
> <transformer ...>
>     <bundle-factory>xml</bundle-factory>
> </transformer>
>
> or something like that.
>
> What do you think? I'd also recommend you to look at the i18n stuff in the
> Avalon scratchpad.

That sounds very good. The Excalibur Bundle pieces would be one example of a 
factory.

> P.S. Unfortunately, I can help only with comments/suggestions for now
> because of (as usual) a limited time.

me too. this is all going on my TODO tho :)
-pete

-- 
peter royal -> [EMAIL PROTECTED]

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to