The fastest way to flatten a list in Python
chrisconlan.com
The fastest way to flatten a list in Python
1–3 of 3 posts
Re: The fastest way to flatten a list in Python
#2There’s also the less obvious but still I think quite well-known recipe that uses itertools.chain. How it compares speed-wise I don’t know.
Re: The fastest way to flatten a list in Python
#3There’s also the less obvious but still I think quite well-known recipe that uses itertools.chain. How it compares speed-wise I don’t know.
Do you mind sharing? I'd like to add it here. https://github.com/chrisconlan/fast-python/blob/master/src/f...