[Tilecache] performance ideas (StringIO -> cStringIO)

Soenke J. Peters peters+tilecache.openlayers.org at opcenter.de
Tue Jan 5 03:32:39 EST 2010


Hi,

replacing native Python's StringIO with its C variant cStringIO
(http://docs.python.org/library/stringio.html#module-cStringIO) could be
another speed improvement:

## diff:
-        import StringIO, Image
+        try:
+            import cStringIO as StringIO
+        except ImportError:
+            import StringIO

Bye,
-- 
  ____   Soenke Jan Peters
 |_  _|    22395 Hamburg, Germany
 ._||      E-Mail & Jabber/XMPP: peters at opcenter.de
           WWW: http://opcenter.de, GnuPG Key-ID: 0xF358FDCA



More information about the Tilecache mailing list