Re: [PATCH] Use cStringIO instead of array in DummyTransaction
Aahz <[email protected]> Wed, 14 Oct 2009 20:20:00 -0700
| Newsgroups | gmane.comp.python.cheetah |
|---|---|
| Organization | The Cat & Dragon |
| Message-ID | <[email protected]> |
On Wed, Oct 14, 2009, R. Tyler Ballance wrote: > > +try: > + from cStringIO import StringIO > +except ImportError: > + import StringIO > + It's not clear what the goal is. IIRC, using ''.join() is roughly comparable in performance with cStringIO (which one is faster varies from version to version), and if for whatever reason cStringIO is not available, StringIO is definitely going to perform worse. -- Aahz ([email protected]) <*> http://www.pythoncraft.com/ "To me vi is Zen. To use vi is to practice zen. Every command is a koan. Profound to the user, unintelligible to the uninitiated. You discover truth everytime you use it." [email protected] ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference