Mike Solomon added the comment:
The in-memory fix is really the most important - the disk space was a bonus
and an easy metric to gather.
Unfortunately, our app won't be upgrading to python 3.x.
On Fri, May 27, 2011 at 7:10 AM, Benjamin Peterson
wrote:
>
> Benjamin Peterson
Mike Solomon 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
New submission from Mike Solomon :
I work on a large app and we noticed that a surprising portion of our heap was
filenames embedded the the bytecode.
This one-line patch to intern filenames reduces our on-disk size about ~15% and
brings down our heap and in-memory object count by a similar