Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73504 > unrolled thread
| Started by | Ethan Furman <ethan@stoneleaf.us> |
|---|---|
| First post | 2014-06-22 11:18 -0700 |
| Last post | 2014-06-22 11:18 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Are there performance concerns with popping from front of long lists vs. the end of long lists? Ethan Furman <ethan@stoneleaf.us> - 2014-06-22 11:18 -0700
| From | Ethan Furman <ethan@stoneleaf.us> |
|---|---|
| Date | 2014-06-22 11:18 -0700 |
| Subject | Re: Are there performance concerns with popping from front of long lists vs. the end of long lists? |
| Message-ID | <mailman.11193.1403462492.18130.python-list@python.org> |
On 06/22/2014 11:03 AM, python@bdurham.com wrote: > > Should I have any performance concerns with the index position used > to pop() values off of large lists? In other words, should pop(0) and > pop() be time equivalent operations with long lists? I believe lists are optimized for adding and removing items from the end, so anywhere else will have an impact. You'll have to do measurements to see if the impact is worth worrying about in your code. -- ~Ethan~
Back to top | Article view | comp.lang.python
csiph-web