Main changes:
- Stop conflating C-style buffers with CPython's Py_buffer. Our analogues to the latter are now instances of
pypy.interpreter.buffer.BufferView
. - Standardise uses of the buffer protocol: Use one of
space.writebuf_w
,space.readbuf_w
, space.charbuf_wwhenever possible, and remove
space.bufferstr_w`. - Optimise some operations on buffers. In particular, fix #2516 (closed).
Note: some of these changes need to be backported to default.