[Python-Dev] Module size

Antoine Pitrou solipsis at pitrou.net
Tue Nov 30 14:38:22 CET 2010


On 2010年11月29日 22:46:33 -0500
Alexander Belopolsky <alexander.belopolsky at gmail.com> wrote:
>> In practical terms, UCD comes at a price. The unicodedata module size
> is over 700K on my machine. This is almost half the size of the
> python executable and by far the largest extension module. (only CJK
> encodings come close.) Making builtins depend on the largest
> extension module for operation does not strike me as sound design.

Well, do they depend on it? _PyUnicode_EncodeDecimal seems to depend
only on Objects/unicodectype.c.
$ size Objects/unicode*.o
 text	 data	 bss	 dec	 hex	filename
 60398	 0	 0	 60398	 ebee	Objects/unicodectype.o
 130440	 13559	 2208	 146207	 23b1f	Objects/unicodeobject.o
Antoine.


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /