bottlepy / bottle

bottle.py is a fast and simple micro-framework for python web-applications.
http://bottlepy.org/
MIT License
8.4k stars 1.46k forks source link

redundant brackets #1266

Closed SergBobrovsky closed 3 years ago

defnull commented 3 years ago

In some versions of Python, String.join() was actually significantly faster with a list than an iterator with unknown size, especially for small lists. May no longer be the case, though.

defnull commented 3 years ago

Performance is not relevant in this case, I just wanted to share the reason why sometimes passing a list instead of a generator makes sense.