[pypy-commit] pypy faster-rstruct-2: specialize on TP
antocuni
pypy.commits at gmail.com
Fri May 5 06:09:40 EDT 2017
Author: Antonio Cuni <anto.cuni at 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
More information about the pypy-commit
mailing list