[Python-Dev] ucnhash module
M.-A. Lemburg
mal@lemburg.com
Thu, 29 Jun 2000 00:38:29 +0200
Jack Jansen wrote:
>
> I'm a bit worried about the ucnhash module and its huge size. I didn't
> follow the discussion closely at the time, because I thought I could
> always exclude it from the Pythons without dynamic linking, but now it
> seems that if i don't include it test_unicode doesn't run anymore.
>
> Is this a problem with test_unicode, or should I consider ucnhash a
> mandatory module?
The ucnhash module is loaded on demand to avoid memory bloat.
In practice the difference is not really noticeable since
loading a shared module or swapping in a few pages of static
C data result in pretty much the same overall memory usage.
If no-one complains, I'll fix the test suite though to make
the tests of the named Unicode characters optional.
Is this ok with you, Bill ?
> (BTW: there were also a couple of bugs in the module, include <> in
> stead of include "", and static in stead of staticforward
> declarations, I'll submit patches for those shortly).
I didn't have any problem compiling the module (don't even get
warnings when compiling with -Wall) ... but you're right:
these ought to get fixed.
BTW, since ucnhash.h|c are generated using the scripts
in Tools/perfecthash/ your patch should probably also fix the
instances of the problems found in there.
--
Marc-Andre Lemburg
______________________________________________________________________
Business: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/