Message218595
"I think the argument against using PyObject_LengthHint for the general iterable case is that for inputs other than sets or dicts, the assumption is that significant deduplication will occur."
Oh... I'm dumb :) Sorry.
Another option for frozenset only: we may adjust the internal size when the frozenset is created from an iterator. |
|
| Date |
User |
Action |
Args |
| 2014-05-15 07:12:01 | vstinner | set | recipients:
+ vstinner, rhettinger, pitrou, serhiy.storchaka, josh.r, lebedov |
| 2014-05-15 07:12:01 | vstinner | set | messageid: <[email protected]> |
| 2014-05-15 07:12:01 | vstinner | link | issue21507 messages |
| 2014-05-15 07:12:01 | vstinner | create | |
|