D2692: merge: return an attrs class from update() and applyupdates()
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Wed Mar 21 20:20:46 EDT 2018
indygreg added a comment.
`__slots__` allocates enough space for the exact set of attributes specified rather than backing object instances by `__dict__`. If you create thousands of small objects that all have the same fields, `__slots__` can yield some performance wins.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2692
To: indygreg, #hg-reviewers, martinvonz
Cc: martinvonz, mercurial-devel
More information about the Mercurial-devel
mailing list