Author: Antonio Cuni <anto.c...@gmail.com> Branch: faster-rstruct-2 Changeset: r91180:d73762117bd5 Date: 2017-05-04 16:22 +0200 http://bitbucket.org/pypy/pypy/changeset/d73762117bd5/
Log: specialize on TP diff --git a/rpython/rlib/buffer.py b/rpython/rlib/buffer.py --- a/rpython/rlib/buffer.py +++ b/rpython/rlib/buffer.py @@ -92,7 +92,7 @@ def releasebuffer(self): pass - #@specialize.?? + @specialize.ll_and_arg(1) def typed_read(self, TP, byte_offset): raise CannotRead @@ -133,7 +133,7 @@ # may still raise ValueError on some GCs return rffi.get_raw_address_of_string(self.value) - #@specialize.?? + @specialize.ll_and_arg(1) def typed_read(self, TP, byte_offset): # WARNING: the 'byte_offset' is, as its name says, measured in bytes; # however, it should be aligned for TP, otherwise on some platforms this _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit