[issue46718] Feature: itertools: add batches

2022-02-12 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46718] Feature: itertools: add batches

2022-02-11 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

For large n, I don't think a C implementation would do much better than your 
Python version where most of the work is done by chain() and islice() which are 
already in C.  The best that could be done is to eliminate the overhead of 
chain() which is likely about a third of the cost.

For smaller n, the grouper recipe is already very close to optimal.

--
assignee:  -> rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46718] Feature: itertools: add batches

2022-02-11 Thread Alex Waygood


Change by Alex Waygood :


--
nosy: +rhettinger, tim.peters
title: Feature: iptertools: add batches -> Feature: itertools: add batches

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com