[Python-Dev] Tunable parameters in dictobject.c (was dictnotes.txt out of date?)

Steven D'Aprano steve at pearwood.info
Mon Jun 18 23:08:21 CEST 2012


Raymond Hettinger wrote:

> Sorry I can make a more detailed post right now.  I'll make time in
> the next couple of weeks to post some code and timings that
> document the collision counts, total memory size, and its affect
> on various dict use cases.


Is there some way to instrument dictionary sparseness, number of hits and 
misses, etc. from Python?

A secret command-line switch, perhaps, or a compile-time option?

And if there isn't, perhaps there should be.


-- 
Steven





More information about the Python-Dev mailing list