[pypy-commit] pypy unicode-utf8-py3: vastly speed up own tests
mattip
pypy.commits at gmail.com
Fri Jan 11 07:06:47 EST 2019
Author: Matti Picus <matti.picus at gmail.com>
Branch: unicode-utf8-py3
Changeset: r95618:cc276d4cd166
Date: 2019-01-11 14:05 +0200
http://bitbucket.org/pypy/pypy/changeset/cc276d4cd166/
Log: vastly speed up own tests
diff --git a/pypy/objspace/std/unicodeobject.py b/pypy/objspace/std/unicodeobject.py
--- a/pypy/objspace/std/unicodeobject.py
+++ b/pypy/objspace/std/unicodeobject.py
@@ -42,9 +42,10 @@
self._index_storage = rutf8.null_storage()
# XXX checking, remove before any performance measurments
# ifdef not_running_in_benchmark
- if not we_are_translated():
- lgt = rutf8.codepoints_in_utf8(utf8str)
- assert lgt == length
+ # if not we_are_translated():
+ # print 'UnicodeObject.__init__'
+ # lgt = rutf8.codepoints_in_utf8(utf8str)
+ # assert lgt == length
@staticmethod
def from_utf8builder(builder):
More information about the pypy-commit
mailing list