[pypy-commit] [Git][pypy/pypy][branch/py3.7] 18 commits: update the files for vmprof-python

Matti Picus foss at heptapod.net
Mon Mar 1 07:39:26 EST 2021



Matti Picus pushed to branch branch/py3.7 at PyPy / pypy


Commits:
eea32247 by Maciej Fijalkowski at 2021-02-23T11:40:07+00:00
update the files for vmprof-python

- - - - -
5c2c65f2 by Matti Picus at 2021-02-24T16:49:40+02:00
more upstream syncing - move inttypes.h into pyport.h (issue 3407)

- - - - -
2dd2c855 by Carl Friedrich Bolz-Tereick at 2021-02-25T09:53:25+01:00
copy an optimization from CPython: when the search string of str.replace and
str.split doesn't occur in the string, don't create a copy but just reuse self.

--HG--
branch : string-algorithmic-optimizations

- - - - -
3a354ad3 by Carl Friedrich Bolz-Tereick at 2021-02-25T10:10:23+01:00
second optimization: have a fast path in replace for single character strings
here too

--HG--
branch : string-algorithmic-optimizations

- - - - -
5e22ae11 by Carl Friedrich Bolz-Tereick at 2021-02-25T13:02:10+01:00
fix a tiny performance bug in our string search that we ported from cpython.
the condition is a bit complicated:

- we need a last character that is unique in the string
- we are at a position in the string that matches the last character, but a
  previous char is a mismatch
- the next char in the haystack is in the bloom filter

if all this is met, we want to skip a whole needle length, not len(needle) - 1

this was pointed out by Tim Peters here: https://bugs.python.org/msg378301

--HG--
branch : string-algorithmic-optimizations

- - - - -
b8c07440 by Carl Friedrich Bolz-Tereick at 2021-02-25T13:15:00+01:00
add a random test for finding

--HG--
branch : string-algorithmic-optimizations

- - - - -
ebb8901f by Armin Rigo at 2021-02-26T10:39:29+01:00
Tests (passing) for _continulet switching to a different thread

- - - - -
a7da745c by Armin Rigo at 2021-02-26T11:21:42+01:00
Test and fix for #3381

- - - - -
38f81ebc by Armin Rigo at 2021-02-26T11:37:16+01:00
Copy dummy constants from greenlet 1.0.0

- - - - -
36829bf3 by Carl Friedrich Bolz-Tereick at 2021-02-26T11:58:51+01:00
follow what cpython is doing more systematically:

add similar cases, stop using StringBuilder, make a correctly sized llstr
directly. needs a refactoring

--HG--
branch : string-algorithmic-optimizations

- - - - -
888361fd by Carl Friedrich Bolz-Tereick at 2021-02-26T13:40:42+01:00
remove code duplication with rstr by having the real implementation of search
only live in rlib/rstring.py

--HG--
branch : string-algorithmic-optimizations

- - - - -
091c2b01 by Carl Friedrich Bolz-Tereick at 2021-02-26T14:08:44+01:00
maxsplit -> maxcount for replace functions

--HG--
branch : string-algorithmic-optimizations

- - - - -
0dbba608 by Carl Friedrich Bolz-Tereick at 2021-02-26T14:09:59+01:00
fix translation

--HG--
branch : string-algorithmic-optimizations

- - - - -
b63ca915 by Carl Friedrich Bolz-Tereick at 2021-02-26T21:03:03+01:00
remove pdb

--HG--
branch : string-algorithmic-optimizations

- - - - -
528d99e1 by Carl Friedrich Bolz-Tereick at 2021-02-28T14:43:32+01:00
add whatsnew

--HG--
branch : string-algorithmic-optimizations

- - - - -
27181592 by Carl Friedrich Bolz-Tereick at 2021-02-28T14:44:08+01:00
merge string-algorithmic-optimizations

- - - - -
6b8b1ffa by Matti Picus at 2021-03-01T14:29:10+02:00
sprinkle more links to heptapod in the docs, update some older pages

- - - - -
c8c3ad09 by Matti Picus at 2021-03-01T14:38:36+02:00
merge default into py3.7

--HG--
branch : py3.7

- - - - -


20 changed files:

- lib_pypy/greenlet.py
- pypy/doc/Makefile
- pypy/doc/contributing.rst
- pypy/doc/dev_method.rst
- pypy/doc/faq.rst
- pypy/doc/index.rst
- pypy/doc/whatsnew-head.rst
- pypy/module/_continuation/interp_continuation.py
- pypy/module/_continuation/test/test_translated.py
- pypy/module/cpyext/include/pyport.h
- + pypy/module/test_lib_pypy/test_greenlet_thread.py
- pypy/objspace/std/bytesobject.py
- pypy/objspace/std/test/test_bytesobject.py
- pypy/objspace/std/test/test_unicodeobject.py
- pypy/objspace/std/unicodeobject.py
- rpython/rlib/rstring.py
- rpython/rlib/rvmprof/src/shared/_vmprof.c
- rpython/rlib/rvmprof/src/shared/vmprof_config.h
- rpython/rlib/test/test_rstring.py
- rpython/rtyper/lltypesystem/rstr.py


View it on GitLab: https://foss.heptapod.net/pypy/pypy/-/compare/35e756c680b363b580b83e23c78ec1b69e6876a5...c8c3ad09a8e9fa45d9d934ef0d244134d3fd88ac

-- 
View it on Heptapod: https://foss.heptapod.net/pypy/pypy/-/compare/35e756c680b363b580b83e23c78ec1b69e6876a5...c8c3ad09a8e9fa45d9d934ef0d244134d3fd88ac
You're receiving this email because of your account on foss.heptapod.net.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/pypy-commit/attachments/20210301/f04c1dca/attachment-0001.html>


More information about the pypy-commit mailing list