Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #70640
| Date | 2014-04-26 15:24 -0500 |
|---|---|
| From | Tim Chase <python.list@tim.thechases.com> |
| Subject | Re: Proper deletion of selected items during map iteration in for loop: Thanks to all |
| References | <535AA12A.1030203@earthlink.net> <535C0827.3010800@earthlink.net> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.9525.1398543855.18130.python-list@python.org> (permalink) |
On 2014-04-26 12:25, Charles Hixson wrote: > I expect that I'll be deleting around 1/3 during > each iteration of the process...and then adding new ones back in. > There shouldn't be a really huge number of deletions on any > particular pass, but it will be looped through many times... If you have further details on what triggers the "adding new ones back in", and what changes or remains the same between various passes, there might be room for optimization elsewhere. -tkc
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Proper deletion of selected items during map iteration in for loop: Thanks to all Tim Chase <python.list@tim.thechases.com> - 2014-04-26 15:24 -0500
csiph-web