Skip to content

Commit

Permalink
moar
Browse files Browse the repository at this point in the history
  • Loading branch information
pydanny committed Sep 22, 2013
1 parent 151ed48 commit 62623e4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion DjangoConEurope2013/prehistoric_python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,11 @@ String Concatenation
# The 'fastest' way
self._leftover = b''.join([bytes, self._leftover])
adding is faster than using the .join() method. WTF?
adding is faster than using the .join() method used above. WTF?!?

Explaining the WTF?!?
=======================

* Looping over a list of strings and adding them together is slow.
* Using .join with a list of strings is fast.
* if you add just two strings, adding them is faster.

0 comments on commit 62623e4

Please sign in to comment.