[pypy-commit] pypy py3.5: Implement PyModule_GetState()

2017-05-14 Thread arigo
Author: Armin Rigo Branch: py3.5 Changeset: r91278:11e536df3c51 Date: 2017-05-14 17:24 +0200 http://bitbucket.org/pypy/pypy/changeset/11e536df3c51/ Log:Implement PyModule_GetState() diff --git a/pypy/module/cpyext/api.py b/pypy/module/cpyext/api.py --- a/pypy/module/cpyext/api.py +++ b/pypy/

[pypy-commit] pypy default: issue #2557: file.read(1) could return 2 bytes on Windows

2017-05-14 Thread arigo
Author: Armin Rigo Branch: Changeset: r91279:643daedf4ed9 Date: 2017-05-14 18:03 +0200 http://bitbucket.org/pypy/pypy/changeset/643daedf4ed9/ Log:issue #2557: file.read(1) could return 2 bytes on Windows diff --git a/rpython/rlib/streamio.py b/rpython/rlib/streamio.py --- a/rpython/rlib/str

[pypy-commit] pypy faster-rstruct-2: add a fastpath for floats and doubles

2017-05-14 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91280:09d1f6469168 Date: 2017-05-13 14:53 +0200 http://bitbucket.org/pypy/pypy/changeset/09d1f6469168/ Log:add a fastpath for floats and doubles diff --git a/rpython/rlib/rstruct/standardfmttable.py b/rpython/rlib/rstruct/standardfmt

[pypy-commit] pypy faster-rstruct-2: pass an external wbuf to PackFormatIterator

2017-05-14 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91283:00ab2f34b4af Date: 2017-05-13 15:14 +0200 http://bitbucket.org/pypy/pypy/changeset/00ab2f34b4af/ Log:pass an external wbuf to PackFormatIterator diff --git a/pypy/module/struct/formatiterator.py b/pypy/module/struct/formatitera

[pypy-commit] pypy faster-rstruct-2: rename fmtiter.result into wbuf, which makes more sense

2017-05-14 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91282:91e0aa0b6c31 Date: 2017-05-13 15:11 +0200 http://bitbucket.org/pypy/pypy/changeset/91e0aa0b6c31/ Log:rename fmtiter.result into wbuf, which makes more sense diff --git a/pypy/module/struct/formatiterator.py b/pypy/module/struct

[pypy-commit] pypy faster-rstruct-2: use the fast path also for the native float/double packing

2017-05-14 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91281:38cd23755b61 Date: 2017-05-13 15:01 +0200 http://bitbucket.org/pypy/pypy/changeset/38cd23755b61/ Log:use the fast path also for the native float/double packing diff --git a/rpython/rlib/rstruct/nativefmttable.py b/rpython/rlib/

[pypy-commit] pypy faster-rstruct-2: we cannot use the fastpath for 'f', because we need to check for overflow in that case. It is fine to use the fastpath for doubles though, because there i

2017-05-14 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91286:6c228d591ce8 Date: 2017-05-15 00:06 +0200 http://bitbucket.org/pypy/pypy/changeset/6c228d591ce8/ Log:we cannot use the fastpath for 'f', because we need to check for overflow in that case. It is fine to use the fastpath f

[pypy-commit] pypy faster-rstruct-2: now that we have all the necessary infrastructure, implement pack_into in a more efficient way, so that PackFormatIterator writes directly inside the destination b

2017-05-14 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91284:a8366709a997 Date: 2017-05-13 15:27 +0200 http://bitbucket.org/pypy/pypy/changeset/a8366709a997/ Log:now that we have all the necessary infrastructure, implement pack_into in a more efficient way, so that PackFormatIterat

[pypy-commit] pypy faster-rstruct-2: fix the tests in jit/backend/x86/test/test_llop.py:test_gc_store*

2017-05-14 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91287:e18391926354 Date: 2017-05-15 00:15 +0200 http://bitbucket.org/pypy/pypy/changeset/e18391926354/ Log:fix the tests in jit/backend/x86/test/test_llop.py:test_gc_store* diff --git a/rpython/jit/backend/x86/test/test_llop.py b/rpy

[pypy-commit] pypy faster-rstruct-2: add tests for the fast path of pack_into

2017-05-14 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91290:b3c274e5c60c Date: 2017-05-15 01:03 +0200 http://bitbucket.org/pypy/pypy/changeset/b3c274e5c60c/ Log:add tests for the fast path of pack_into diff --git a/pypy/module/pypyjit/test_pypy_c/test_struct.py b/pypy/module/pypyjit/tes

[pypy-commit] pypy faster-rstruct-2: add tests for the fast paths of struct.unpack on raw buffers and bytearrays

2017-05-14 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91289:4c03a04236a1 Date: 2017-05-15 00:55 +0200 http://bitbucket.org/pypy/pypy/changeset/4c03a04236a1/ Log:add tests for the fast paths of struct.unpack on raw buffers and bytearrays diff --git a/pypy/module/pypyjit/test_pypy_

[pypy-commit] pypy faster-rstruct-2: fix the test_pypy_c tests about the struct module, now that we have the fast path also for packing

2017-05-14 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91288:1bffd7929b3f Date: 2017-05-15 00:43 +0200 http://bitbucket.org/pypy/pypy/changeset/1bffd7929b3f/ Log:fix the test_pypy_c tests about the struct module, now that we have the fast path also for packing diff --git a/pypy/mo

[pypy-commit] pypy faster-rstruct-2: whoo... finally reach the whole point of the branch: struct.pack_into(bytearray...) takes the fast path :)

2017-05-14 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91285:973fa84efaef Date: 2017-05-13 15:39 +0200 http://bitbucket.org/pypy/pypy/changeset/973fa84efaef/ Log:whoo... finally reach the whole point of the branch: struct.pack_into(bytearray...) takes the fast path :) diff --git a

[pypy-commit] pypy default: OpenBSD also needs sys/ttycom.h included.

2017-05-14 Thread ltratt
Author: Laurence Tratt Branch: Changeset: r91291:51b52e05a32a Date: 2017-05-14 19:22 +0800 http://bitbucket.org/pypy/pypy/changeset/51b52e05a32a/ Log:OpenBSD also needs sys/ttycom.h included. diff --git a/rpython/rlib/rposix.py b/rpython/rlib/rposix.py --- a/rpython/rlib/rposix.py +++ b/rpy

[pypy-commit] pypy default: hg merge default

2017-05-14 Thread ltratt
Author: Laurence Tratt Branch: Changeset: r91294:92e51c0101b5 Date: 2017-05-15 09:18 +0800 http://bitbucket.org/pypy/pypy/changeset/92e51c0101b5/ Log:hg merge default diff --git a/rpython/rlib/streamio.py b/rpython/rlib/streamio.py --- a/rpython/rlib/streamio.py +++ b/rpython/rlib/streamio.

[pypy-commit] pypy default: string.h needs to be included for strlen to be found.

2017-05-14 Thread ltratt
Author: Laurence Tratt Branch: Changeset: r91292:42c6ee223963 Date: 2017-05-14 19:25 +0800 http://bitbucket.org/pypy/pypy/changeset/42c6ee223963/ Log:string.h needs to be included for strlen to be found. diff --git a/rpython/rlib/rvmprof/src/shared/machine.c b/rpython/rlib/rvmprof/src/shar

[pypy-commit] pypy default: Disable vmprof on OpenBSD as it doesn't build.

2017-05-14 Thread ltratt
Author: Laurence Tratt Branch: Changeset: r91293:00193a29fff8 Date: 2017-05-15 09:10 +0800 http://bitbucket.org/pypy/pypy/changeset/00193a29fff8/ Log:Disable vmprof on OpenBSD as it doesn't build. diff --git a/pypy/config/pypyoption.py b/pypy/config/pypyoption.py --- a/pypy/config/pypyoptio