[Python-Dev] Dictionary sparseness

Alex Martelli aleax@aleax.it
Mon, 5 May 2003 21:21:28 +0200


On Monday 05 May 2003 08:12 pm, Jeremy Hylton wrote:
> On Mon, 2003-05-05 at 13:57, Alex Martelli wrote:
> > On Monday 05 May 2003 07:46 pm, Guido van Rossum wrote:
> > > > No thanks.  I've paid my dues and I hope I will *NEVER* again have to
> > > > work with a system that thinks it's so smart it doesn't need my
> > > > advisory input -- or at least not on anything that's as
> > > > performance-crucial as those Fortran programs were [...]
> > >
> > > I severely doubt that any Python apps are as performance-critical as
> > > those Fortran programs were.
> >
> > Yes, this may well be correct.  My only TRUE wish for tuning performance
> > of Python applications is to have SOME ways to measure memory
> > footprints with sensible guesses about where they come from -- THAT
> > is where I might gain hugely (by fighting excessive working sets through
> > selective flushing of caches, freelists, etc).
>
> Any idea how to actually do this?

Not really, even though I've been thinking about it for a while -- pymalloc's
the only "hook" that comes to mind so far.


Alex