![]() ![]() It stood until mid-July when Jelle Zijlstra added a comment that Subsequently closed again for more or less the same reasons. Hettinger closed the bug, though it was reopened in December to consider aĭifferent approach using Argument Clinic and Named tuple developer Raymond Hettinger was not convinced thereĬaring about start-up performance is certainly a good thing, but whenĬonsidering potential ways to improve the situation, structuralĮnhancements to the underlying systems are preferable to ad hoc specialĬases that complicate future development efforts. Updates or fixes to what namedtuple() produces would not be There are a few problems with that approach, including the fact that any Implementation of the named tuple class, which eliminates the need toĮxecute some of that code at import time (which is what namedtuple() _source attribute contains the pure Python Replace the namedtuple() call with its equivalent Python code thatĪttribute of a class created with namedtuple(). p.x) in addition to the usual p mechanism.Ģ016 identified namedtuple() as a culprit in increasing the The elements of the named tuple can then be accessed using the field names The canonical example is to create a Point class Library and in other Python modules, but the discussion has been moreĪ "named tuple" is a way to assign field names to elements in a Python This time, the focus has been on the collections.namedtuple()ĭata structure that is used in multiple places throughout the standard The most recent iteration of the startup timeĭiscussion has played out in the python-dev and python-ideas mailing lists Language are taking more than twice as long to start up when compared to Worse than some other scripting languages and more recent versions of the Startup time can dominate the execution time of command-line programsĮspecially if they import a lot of other modules. ![]() The startup time for the Python interpreter has been discussed by the coreĭevelopers and others numerous times over the years optimization efforts ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |