[Python-Dev] Python's footprint
Gustavo Niemeyer
niemeyer@conectiva.com
Thu, 8 Nov 2001 14:21:07 -0200
--k+w/mQv8wyuph6w0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hello!
I've been thinking about ways to reduce python's footprint, so we'd be
able to include the interpreter in environments requiring reduced
applications. One of the tests I've done was to remove every inlined
documentation. Please, take a look at the results using a stripped
binary of python 2.2:
With inline docs:
-rwxrwxr-x 1 niemeyer niemeyer 634452 Nov 8 17:05 python
Without inline docs:
-rwxrwxr-x 1 niemeyer niemeyer 576852 Nov 8 17:12 python
It means that about 10% of python's executable is documentation. Now I'm
wondering if something like a DOCSTRING("foo") macro would be valid in
that case. If the user disabled it trough --disable-doc, for example,
DOCSTRING() would return "".
Thanks!
--=20
Gustavo Niemeyer
[ 2AAC 7928 0FBF 0299 5EB5 60E2 2253 B29A 6664 3A0C ]
--k+w/mQv8wyuph6w0
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE76rDyIlOymmZkOgwRAn85AKC5mQS/NABzC1Yce5VsVsoI4oNkewCfc/r6
RNlpkR12nyTEFMQ1auuq1Eo=
=oDRc
-----END PGP SIGNATURE-----
--k+w/mQv8wyuph6w0--