[issue12190] intern filenames in bytecode

Mike Solomon report at bugs.python.org
Fri May 27 00:17:39 CEST 2011


Mike Solomon <msolo at gmail.com> added the comment:

If you have a file with say a hundred functions, and each function contains
the full path of that file on disk, your pyc file will contain about
(100*(path_size+overhead)) bytes. In some cases, this is pretty
significant.

On Thu, May 26, 2011 at 12:47 PM, Benjamin Peterson
<report at bugs.python.org>wrote:

>
> Benjamin Peterson <benjamin at python.org> added the comment:
>
> How exactly does it bring down your disk space?
>
> ----------
> nosy: +benjamin.peterson
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue12190>
> _______________________________________
>

----------
Added file: http://bugs.python.org/file22136/unnamed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12190>
_______________________________________
-------------- next part --------------
If you have a file with say a hundred functions, and each function contains the full path of that file on disk, your pyc file will contain about (100*(path_size+overhead)) bytes. In some cases, this is pretty significant. <div>
<br><div><div class="gmail_quote">On Thu, May 26, 2011 at 12:47 PM, Benjamin Peterson <span dir="ltr">&lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Benjamin Peterson &lt;<a href="mailto:benjamin at python.org">benjamin at python.org</a>&gt; added the comment:<br>
<br>
How exactly does it bring down your disk space?<br>
<br>
----------<br>
nosy: +benjamin.peterson<br>
<div><div></div><div class="h5"><br>
_______________________________________<br>
Python tracker &lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;<br>
&lt;<a href="http://bugs.python.org/issue12190" target="_blank">http://bugs.python.org/issue12190</a>&gt;<br>
_______________________________________<br>
</div></div></blockquote></div><br></div></div>


More information about the Python-bugs-list mailing list