Better HN
top
new
best
ask
show
jobs
Log in
Sign up
The fastest way to flatten a list in Python | Better HN
The fastest way to flatten a list in Python
(chrisconlan.com)
3 points · by
__chrisconlan__
· 6y ago · 2 comments
Comments
[–]
asplake
6y ago
There’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.
[–]
__chrisconlan__
OP
6y ago
Do you mind sharing? I'd like to add it here.
https://github.com/chrisconlan/fast-python/blob/master/src/f...