|
From: | Paul Eggert |
Subject: | Re: Python list micro-benchmarks |
Date: | Sun, 7 Apr 2024 17:51:27 -0700 |
User-agent: | Mozilla Thunderbird |
On 2024-04-07 16:07, Collin Funk wrote:
I think that the difference between 'a.extend([var])' and 'a.append(var)' would better explain the differences in timing that we see with a large number of repetitions.
a.append should be faster, as it need not cons the singleton.
[Prev in Thread] | Current Thread | [Next in Thread] |