Re: Zope 2.12 20% slower than Zope 2.9?!

Hanno Schlichting <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
On Mon, Oct 11, 2010 at 10:54 PM, Chris Withers <[email protected]> wrote:
> What's the chameleon or z3c.pt way of dealing with this*?
>
> *'this' is stacks of ZODB-based page templates whose source may well be
> latin-1 encoded but, moreover, which are operating on a bunch of content
> that's *definitely* latin-1 encoded...

Eeh, damn, haven't heard of latin-1 users in a decade. With latin-1
you probably won't be able to use Chameleon. It handles both Unicode
and utf-8 encoded strings fine on its own. But that support is done
deep down in the inner workings and not configurable.

Your best bet now is to ignore Chameleon and put the "convert to
proper Unicode" item up higher on the todo list.

Hanno

P.S. Of course it's all code, so you could subclass the right parts of
the machinery and make this stuff configurable. For anyone who's not
Malthe that will just be quite a bit of a pain and time consuming.
_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.