Skip to content

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 20:14
Immutable release. Only release title and notes can be modified.
a609229

Changed

  • The playground runs on Pyodide 0.29.5 (Python 3.13), up from 0.26.4, in a module
    worker. The page downloads 1.5 MB less to start, and a build removes runtime files the
    pin no longer names, so an old release's loader is never served next to the new one.
  • Spelling() takes only left and right. is_function, is_array, ref_kind
    and members come from the class now, through private subclasses the builder picks,
    so a plain name costs two attribute stores rather than six and Itanium runs about 2%
    fewer instructions. Code that passed those keywords should call SPELLING_BUILDER's
    methods instead.

Performance

  • Itanium names read about twice as fast on CPython. The wheels for Linux, macOS
    and Windows on CPython 3.11 to 3.14 now carry the reader, the spelling builder and the
    Itanium parser compiled with mypyc, from the same source: 19 us a name cold over the
    libstdc++ and real-world corpora, against 40 for 0.6.0 and for the pure code. The
    output is the same byte for byte. PyPy, free-threaded builds, other platforms and
    --no-binary installs get the pure wheel, which is unchanged.
  • The playground reads its first name about half a second sooner. A site built on
    Python 3.13, the runtime's own, ships the package as bytecode, so the browser no longer
    compiles it on every visit.

Install with python -m pip install --upgrade demangle.

See the changelog for details.