aaronsw/html2text — pull request #23 by abgoyal (2011-10-21 14:39:30+00:00)
Title: very slow string concatenation (self.outtest +=s ) replaced with list app

very slow string concatenation (self.outtest +=s ) replaced with list append and a final "".join()

Processing a 5MB html file with this was taking ~2500 sconds before this patch. With this patch it only takes ~20 seconds.