1. Pypy
  2. Untitled project
  3. pypy

Pull requests

#119 Merged
Repository
kostialopuhin
Branch
unquote-faster
Repository
pypy
Branch
default

Make unquote from urllib and urlparse faster

Author
  1. Konstantin Lopuhin
Reviewers
Description

Instead of building result by doing inplace addition of string, make a list of pieces and join them together. Before this fix pypy was way slower then cpython on long strings. Now it is about 2 x faster on long strings, and 4-5 x faster on small strings.

Sorry for blowing everything with the previous one :)

  • Learn about pull requests

Comments (0)