set() and set.update() already presize once upfront when called on other sets or dicts, but other iterables are sized dynamically. For iterables where we know their size, expand the use of presizing to reduce overhead.
PR is already prepared.
Linked PRs
set()andset.update()already presize once upfront when called on othersetsordicts, but other iterables are sized dynamically. For iterables where we know their size, expand the use of presizing to reduce overhead.PR is already prepared.
Linked PRs