Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | py: Add iter_buf to getiter type method. | Damien George | 2017-02-16 |
| | | | | | | | | | | | | | | | Allows to iterate over the following without allocating on the heap: - tuple - list - string, bytes - bytearray, array - dict (not dict.keys, dict.values, dict.items) - set, frozenset Allows to call the following without heap memory: - all, any, min, max, sum TODO: still need to allocate stack memory in bytecode for iter_buf. | ||
* | py/objpolyiter: Implement instance-polymorphic iterator type. | Paul Sokolovsky | 2015-12-14 |
This allows to have single itertaor type for various internal iterator types (save rodata space by not having repeating almost-empty type structures). It works by looking "iternext" method stored in particular object instance (should be first object field after "base"). |