Why is this slower?
Joseph Reagle
reagle at mit.edu
Tue Oct 6 13:34:00 EDT 2009
nn wrote:
> Not only are you doing many function calls but you are assigning 12
> objects each time. Why not do this?
>
> for bio in bios.values():
> inSRC.add(bio)
That obviously makes sense, but I was trying to get away from the verbosity
of:
inSRC = set([])
inSRC = set([])
inEB = set([])
inWP = set([])
SRCfem = set([])
EBfem = set([])
WPfem = set([])
SRCmale = set([])
EBmale = set([])
WPmale = set([])
SRCun = set([])
EBun = set([])
WPun = set([])
More information about the Python-list
mailing list