> But more importantly, some years ago (Python 2.4, about 8 years ago?) the > Python developers found a really neat trick that they can do to optimize > string concatenation so it doesn't need to repeatedly copy characters over > and > over and over again. I won't go into details, but the thing is, this trick > works well enough that repeated concatenation is about as fast as the join > method MOST of the time.
I would like to learn a bit more about the trick if you have a reference handy. I have no intention of using it, but it sounds interesting and might teach me more about Python internals. Ramit Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology 712 Main Street | Houston, TX 77002 work phone: 713 - 216 - 5423 -- This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor