[pacman-dev] [PATCH 4/8] Add shims to return views on Python dicts.
scalaprotractor at gmail.com
Thu Oct 10 06:44:01 EDT 2013
On Thu, Oct 10, 2013 at 12:43 AM, Martin Panter <vadmium+patch at gmail.com> wrote:
> On 10 October 2013 00:35, Jeremy Heiner <scalaprotractor at gmail.com> wrote:
> Perhaps it might be simpler to just use Python 3’s items() etc methods
> directly. That tends to also work with Python < 3 in most cases. I
> admit I’ve never used Pacman’s test suite so perhaps the extra expense
> would be significant under Python 2?
Hi, Martin. That is a great question. My "run all tests under 2.5,
2.6, and 2.7" script takes 85 seconds either way. So it seems that
avoiding the copying gives no real boost.
More information about the pacman-dev