Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-02-16 | py: Add iter_buf to getiter type method. | Damien George | |
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. | |||
2015-12-14 | py/objpolyiter: Implement instance-polymorphic iterator type. | Paul Sokolovsky | |
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"). |