4 ms·
It ain't just a 1% gain. Use a Python list if you want to append/pop.
by xapata 10y ago
It ain't just a 1% gain. Use a Python list if you want to append/pop.
- _Wintermute 10y agoA deque is probably a better option for performance.
- xapata 10y agoDepends on how much it grows. I'd actually expect very little difference for most append/pop situations. A deque is there for appendleft and popleft.
- dnautics 10y agothat may be so in Python, but have you checked the performance differences in Julia?