[Zope3-dev] Space usage of unicode strings in the ZODB

Andreas Jung Andreas Jung" <andreas@zope.com
Thu, 14 Feb 2002 13:39:10 -0500


Hmm....I don't think so.

 - aj 
----- Original Message ----- 
From: "Stephan Richter" <srichter@cbu.edu>
To: "Andreas Jung" <andreas@zope.com>; <zope3-dev@zope.org>
Sent: Thursday, February 14, 2002 13:35
Subject: Re: [Zope3-dev] Space usage of unicode strings in the ZODB


> At 12:13 PM 2/14/2002 -0500, Andreas Jung wrote:
> >Unicode strings:
> >internal UCS-2 encoding         5.4 MB
> >internal UCS-4 encoding         5.4 MB
> >
> >
> >I am astonished that unicode strings require the same space -
> >independant from their internal storage in Python (2 vs. 4 bytes).
> 
> Could this be because py_malloc allocates in 64 bit chunks?
> 
> Regards,
> Stephan
> 
> --
> Stephan Richter
> CBU - Physics and Chemistry Student
> Web2k - Web Design/Development & Technical Project Management
> 
>