Message 284974 - Python tracker

Message284974

Author serhiy.storchaka
Recipients methane, rhettinger, serhiy.storchaka
Date 2017-01-08.10:40:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483872007.22.0.0639897768324.issue29202@psf.upfronthosting.co.za>
In-reply-to
Content
I'm wondering why new dict implementation don't keep the array of items compact? Original Raymond's implementation did not preserve the order after deletions, but saved items in an array without gaps. This could simplify and speed up an iteration (no need to check values for NULL, and needed to iterate fewer elements), and could get rid of reallocations in often mutated dicts. I haven't found clear explanation of this.
History
Date User Action Args
2017-01-08 10:40:07serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, methane
2017-01-08 10:40:07serhiy.storchakasetmessageid: <1483872007.22.0.0639897768324.issue29202@psf.upfronthosting.co.za>
2017-01-08 10:40:07serhiy.storchakalinkissue29202 messages
2017-01-08 10:40:07serhiy.storchakacreate