550/tf2ib — pull request #28 by riking (2012-10-11 00:10:29+00:00)
Title: String refactoring - pug.py

String addition in python creates a new string object every time it happens. As a result, it is inefficient to add any more than two strings together, instead, the format operator should be used. I have converted all the send() calls in pug.py to use string formatting instead of addition, and also added three convenience functions to reduce string constant redundancy.

I did notice many more inefficiencies while looking through the code, and will get to those shortly.