[pypy-svn] r74903 - pypy/trunk/pypy/objspace/std

fijal at codespeak.net fijal at codespeak.net
Sun May 30 01:40:19 CEST 2010


Author: fijal
Date: Sun May 30 01:40:16 2010
New Revision: 74903

Modified:
   pypy/trunk/pypy/objspace/std/unicodetype.py
Log:
Leave a comment that we might want to have a perf shortcut here


Modified: pypy/trunk/pypy/objspace/std/unicodetype.py
==============================================================================
--- pypy/trunk/pypy/objspace/std/unicodetype.py	(original)
+++ pypy/trunk/pypy/objspace/std/unicodetype.py	Sun May 30 01:40:16 2010
@@ -183,6 +183,8 @@
     return encoding, errors
 
 def encode_object(space, w_object, encoding, errors):
+    # XXX write down shortcuts for performance for common encodings,
+    #     just like CPython
     if encoding is None:
         # Get the encoder functions as a wrapped object.
         # This lookup is cached.



More information about the Pypy-commit mailing list