[Python-Dev] Impact of Namedtuple on startup time
Antoine Pitrou
solipsis at pitrou.net
Mon Jul 17 08:53:12 EDT 2017
On Mon, 17 Jul 2017 14:43:19 +0200
Antoine Pitrou <solipsis at pitrou.net> wrote:
> Hello,
>
> Cost of creating a namedtuple has been identified as a contributor to
> Python startup time.
Imprecise wording: that's the cost of creating a namedtuple *class*,
i.e. anytime someone writes `MyClass = namedtuple('MyClass', ...)`.
Regards
Antoine.
More information about the Python-Dev
mailing list