[pypy-issue] Issue #2815: Stripping strings out of whitespaces can be sped up using SIMD (pypy/pypy)

Omer Katz issues-reply at bitbucket.org
Wed May 2 05:34:27 EDT 2018


New issue 2815: Stripping strings out of whitespaces can be sped up using SIMD
https://bitbucket.org/pypy/pypy/issues/2815/stripping-strings-out-of-whitespaces-can

Omer Katz:

`str`'s methods `strip()`, `rstrip()` and `lstrip()` can be significantly sped up when SIMD is available and when the user hasn't provided any other value to strip.

The [despacer](https://github.com/lemire/despacer) project demonstrates how it is done. It currently does not strip tabs so we'll need to adjust their code.




More information about the pypy-issue mailing list