[pypy-commit] pypy default: ast.parse(some_ast, ...) should return its first argument.

2017-05-05 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: Changeset: r91190:0a70dce2070a Date: 2017-05-05 19:01 +0200 http://bitbucket.org/pypy/pypy/changeset/0a70dce2070a/ Log:ast.parse(some_ast, ...) should return its first argument. diff --git a/pypy/module/__builtin__/compiling.py b/pypy/module/__builtin__

[pypy-commit] pypy default: Populate tp_descr_get and tp_descr_set slots

2017-05-05 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: Changeset: r91188:5b724c72fb87 Date: 2017-05-01 02:07 +0200 http://bitbucket.org/pypy/pypy/changeset/5b724c72fb87/ Log:Populate tp_descr_get and tp_descr_set slots diff --git a/pypy/module/cpyext/test/test_userslots.py b/pypy/module/cpyext/test/test_use

[pypy-commit] pypy faster-rstruct-2: implement typed_read for BytearrayBuffer and test that struct.unpack takes the fast path. However this is sub-optimal, see the comment for an explanation

2017-05-05 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91187:3542b2943610 Date: 2017-05-05 18:44 +0200 http://bitbucket.org/pypy/pypy/changeset/3542b2943610/ Log:implement typed_read for BytearrayBuffer and test that struct.unpack takes the fast path. However this is sub-optimal, s

[pypy-commit] pypy default: Issue 2551: Struct should be initialized in __init__, not __new__

2017-05-05 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: Changeset: r91189:f452cdf49d49 Date: 2017-05-04 00:23 +0200 http://bitbucket.org/pypy/pypy/changeset/f452cdf49d49/ Log:Issue 2551: Struct should be initialized in __init__, not __new__ diff --git a/pypy/module/struct/interp_struct.py b/pypy/module/struc

[pypy-commit] pypy faster-rstruct-2: add docstring

2017-05-05 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91186:49b58714e115 Date: 2017-05-05 15:24 +0200 http://bitbucket.org/pypy/pypy/changeset/49b58714e115/ Log:add docstring diff --git a/rpython/rlib/buffer.py b/rpython/rlib/buffer.py --- a/rpython/rlib/buffer.py +++ b/rpython/rlib/buff

[pypy-commit] pypy faster-rstruct-2: if we don't ensure that StringBuffer.value is not None, the annotator crashes as soon as you call str2chap(buf.as_str()). There are lots of places which do the ass

2017-05-05 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91185:037cc12c66ea Date: 2017-05-05 15:29 + http://bitbucket.org/pypy/pypy/changeset/037cc12c66ea/ Log:if we don't ensure that StringBuffer.value is not None, the annotator crashes as soon as you call str2chap(buf.as_str())

[pypy-commit] pypy faster-rstruct-2: fix module/struct to use the new functionality. Add a passing test to check that struct.unpack(..., ) uses the fast-path; test_unpack_from still failing thoug

2017-05-05 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91182:1a2232f24cad Date: 2017-05-04 19:19 +0200 http://bitbucket.org/pypy/pypy/changeset/1a2232f24cad/ Log:fix module/struct to use the new functionality. Add a passing test to check that struct.unpack(..., ) uses the fast-path

[pypy-commit] pypy faster-rstruct-2: kill as_str_and_offset_maybe, as it is no longer needed/used anywhere

2017-05-05 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91184:a3cde44d8c93 Date: 2017-05-04 19:26 +0200 http://bitbucket.org/pypy/pypy/changeset/a3cde44d8c93/ Log:kill as_str_and_offset_maybe, as it is no longer needed/used anywhere diff --git a/rpython/rlib/buffer.py b/rpython/rli

[pypy-commit] pypy faster-rstruct-2: implement and test SubBuffer.typed_read; this fixes pypy/module/struct/test/test_struct.py:test_unpack_from

2017-05-05 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91183:ed8803b41b6c Date: 2017-05-04 19:24 +0200 http://bitbucket.org/pypy/pypy/changeset/ed8803b41b6c/ Log:implement and test SubBuffer.typed_read; this fixes pypy/module/struct/test/test_struct.py:test_unpack_from diff --git

[pypy-commit] pypy faster-rstruct-2: refactor rstruct.runpack to use the new Buffer.typed_read functionality, instead of deprecated strstorage. This breaks pypy/module/struct, whstruct, which will be

2017-05-05 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91181:474ad89b70a8 Date: 2017-05-04 18:46 +0200 http://bitbucket.org/pypy/pypy/changeset/474ad89b70a8/ Log:refactor rstruct.runpack to use the new Buffer.typed_read functionality, instead of deprecated strstorage. This breaks

[pypy-commit] pypy faster-rstruct-2: specialize on TP

2017-05-05 Thread antocuni
Author: Antonio Cuni 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/b

[pypy-commit] stmgc c8-adaptive-trx-length-prolonged-backoff: Use simple on off mechanism for the adaptive mode

2017-05-05 Thread tobweber
Author: Tobias Weber Branch: c8-adaptive-trx-length-prolonged-backoff Changeset: r2054:6b4b7aedc3d1 Date: 2017-05-04 12:24 +0200 http://bitbucket.org/pypy/stmgc/changeset/6b4b7aedc3d1/ Log:Use simple on off mechanism for the adaptive mode diff --git a/c8/stm/nursery.c b/c8/stm/nursery.c ---

[pypy-commit] stmgc c8-adaptive-trx-length-prolonged-backoff: Set exponential base back to two because the effect was insignificant

2017-05-05 Thread tobweber
Author: Tobias Weber Branch: c8-adaptive-trx-length-prolonged-backoff Changeset: r2057:8170562e2157 Date: 2017-05-05 11:39 +0200 http://bitbucket.org/pypy/stmgc/changeset/8170562e2157/ Log:Set exponential base back to two because the effect was insignificant diff --git a/c8/stm/nurse

[pypy-commit] stmgc c8-adaptive-trx-length-prolonged-backoff: Backed out changeset 6b4b7aedc3d1

2017-05-05 Thread tobweber
Author: Tobias Weber Branch: c8-adaptive-trx-length-prolonged-backoff Changeset: r2055:707bc6a2c0a8 Date: 2017-05-04 12:39 +0200 http://bitbucket.org/pypy/stmgc/changeset/707bc6a2c0a8/ Log:Backed out changeset 6b4b7aedc3d1 diff --git a/c8/stm/nursery.c b/c8/stm/nursery.c --- a/c8/stm/nursery

[pypy-commit] stmgc c8-adaptive-trx-length-prolonged-backoff: Set exponential base of trx length modifier to 1000

2017-05-05 Thread tobweber
Author: Tobias Weber Branch: c8-adaptive-trx-length-prolonged-backoff Changeset: r2056:22ebd85e36fd Date: 2017-05-04 17:38 +0200 http://bitbucket.org/pypy/stmgc/changeset/22ebd85e36fd/ Log:Set exponential base of trx length modifier to 1000 diff --git a/c8/stm/nursery.c b/c8/stm/nursery.c --