Repository navigation
ZIPP v0.0.41
ZIPP 0.0.41
A four-phase real-world performance release delivering major speedups across production JavaScript and Python applications, Python generators (yield from / send / bulk drain), regular expressions, class/metaclass attribute caches, x86-64 JIT inlining, and heap allocation throughput — while preserving byte-identical output and zero unsafe in safe-sandbox / WebAssembly builds.
Benchmark Highlights (v0.0.41 vs. v0.0.40, Node.js & CPython)
All measurements below were captured on Windows x86-64 with byte-identical output against Node.js v24.19.0 and CPython 3.13.14, comparing matched local non-PGO fat-LTO builds of v0.0.40 (9b70d2d3) and v0.0.41 (e39f4ebe) on the same machine. Release PGO builds of v0.0.41 add further gains on top of these numbers.
Real-World Applications (5-Rep Interleaved Steady-State Warm Median)
| App | Language | v0.0.40 Warm |
v0.0.41 Warm (min) |
Speedup vs. v0.0.40 |
v0.0.41 Wall vs. Ref |
|---|---|---|---|---|---|
| linkedom | JS | 8.13 ms | 4.87 ms (4.05 ms) | −40.1% (1.67× faster) | 1.30× Node.js v24.19.0 |
| webforai | JS | 99.35 ms | 91.05 ms (83.42 ms) | −8.4% (1.09× faster) | 2.32× Node.js v24.19.0 |
| defuddle | JS | 135.09 ms | 126.96 ms (121.73 ms) | −6.0% (1.06× faster) | 2.44× Node.js v24.19.0 |
| html2text | Python | 12.30 ms | 7.98 ms (7.32 ms) | −35.1% (1.54× faster) | 1.46× CPython 3.13.14 (1.34× warm) |
| bs4_css (BS4 + SoupSieve) | Python | 31.69 ms | 15.50 ms (13.60 ms) | −51.1% (2.04× faster) | 1.52× CPython 3.13.14 |
| markdownify | Python | 51.25 ms | 28.48 ms (22.48 ms) | −44.4% (1.80× faster) | 2.19× CPython 3.13.14 |
Official Benchmark Suites (v0.0.41 vs. v0.0.40, Matched Fat-LTO)
| Suite | v0.0.40 (fat-LTO) |
v0.0.41 (fat-LTO) |
Highlights |
|---|---|---|---|
Python tools/python_bench.py (44 programs, 3 reps) |
0.62× vs. CPython (26/36 wins) |
0.55× vs. CPython (0.90× vs. v0.0.40, 27/36 wins) |
micro 0.52× (0.88× vs. v0.0.40), macro 0.73× (0.96× vs. v0.0.40); math_sqrt 0.71× → 0.32×, builtin_isinstance 0.62× → 0.31×, global_read 0.36× → 0.21×, builtin_len 0.54× → 0.34×, torch_matmul_big 0.65× vs. v0.0.40, str_long_len_index 0.55× → 0.41×, hasattr_miss 0.53× → 0.41×, call_simple 0.68× → 0.54×, try_raise_catch 0.30× → 0.24×, instance_new 1.35× → 1.23×, sort_heapq 1.26× → 1.17×. |
JS tools/bench.py (bench/real, 13 programs, 3 reps) |
1.000× baseline |
0.997× geomean (ALL_CORRECT=1, startup 9.8 ms) |
map-set-heavy −3.5%, markdown-render −2.3%, parse-large-js −2.1%; zero regressions across all 13 benchmarks. |
JS tools/bench_hostile.py (17 stress tests vs. Node.js) |
— | ALL_CORRECT=1 |
Byte-identical output across all 17 hostile stress benchmarks. |
New in 0.0.41
- JavaScript VM, x86-64 JIT & Regex Throughput:
- Adds an inline x86-64
GetPropfast path for pristine%String.prototype%methods (indexOf,slice,startsWith,endsWith,includes,trim,split,replace, etc.), cutting DOM and text-heavy property lookup overhead. - Eliminates leaf-inlining bail storms in large DOM walkers (
defuddle), removes legacylexical_thiscall_valuedetours and redundantwarm_mega_method_memoscans injit_region_call_impl, and expandsregion_mem/proto_mem/ OSR / IC specialization. - Adds a zero-
mi_mallocstreamingregex_replace_asciifast path and a directRegExpMethod::Matchlane inproxy_regexp.rs. - Filters
inherit_private_brandsvia a cachedfunc_needs_brandspredicate so class constructors without private brand fields skip brand-table work.
- Adds an inline x86-64
- Python Generators,
yield from, Iterators & Regex:- Implements native PEP 380
yield from(PY_YFSTEP/__zipp_py_yfstep), nativegenerator.send,next,list,tuple, bulkPY_ITER/ generator drain into dense arrays, and a nativestringIterfast path (kind=5). - Adds lazy zero-
Array/zero-SlotTableASCII span-backed Pythonre.Matchobjects alongside native module-levelre.sub/re.search/re.match/re.fullmatchfast lanes, eliminating temporary match allocations on misses and unindexed matches. - Adds a native
textwrap.wrap/fillfast path (with zerounsafeundersafe-sandbox/ WebAssembly builds).
- Implements native PEP 380
- Python Object Model, Descriptors, Subclasses & JIT ICs:
- Switches
R.functo a zero-copy 32-slot record layout with lazydict: nullallocation. - Caches type-object attributes (
TYPE_CLASS_ATTR) and metaclass@propertygetters (TYPE_ATTR_FN) in Python ICs, adds direct@propertyand bound-generator call ICs (CALL_BOUND_GEN), and lowers 2-argumentsuper(Cls, self).method(...)directly in the Python frontend. - Adds native builtin-subclass
__contains__fast lanes (SUB_DICT_IN,SUB_SEQ_IN,SUB_STR_IN) for workloads such as BeautifulSoup / SoupSieve.
- Switches
Downloads
| File | What it is |
|---|---|
zipp-0.0.41-windows-x86_64-portable.exe |
The Windows command line; run it from anywhere. |
zipp-0.0.41-windows-x86_64-installer.msi |
The same binary, installed for the current user into %LOCALAPPDATA%\Programs\ZIPP and added to PATH; no administrator rights. Uninstall from Settings > Apps. |
zipp-0.0.41-linux-x86_64 |
The Linux command line, x86-64 (glibc 2.35 or later). chmod +x it after downloading. |
zipp-0.0.41-linux-arm64 |
The same for 64-bit Arm. |
zipp-0.0.41-linux-armv7 |
The same for 32-bit Arm (hard float); interpreter only, and WebAssembly on wasmi. |
zipp-0.0.41-javascript.wasm |
The JavaScript engine for browsers, Node, Deno and Bun. |
zipp-0.0.41-javascript-typescript.wasm |
The same with TypeScript and TSX. |
zipp-0.0.41-javascript-lite.wasm |
The JavaScript core without Intl and Temporal, built for size. |
zipp-0.0.41-javascript-python.wasm |
JavaScript and Python, torch built in. |
zipp-0.0.41-javascript-python-base.wasm |
JavaScript and Python without torch. |
zipp-0.0.41-javascript-php.wasm |
JavaScript and PHP 8.x, with PhpApp SAPI and SQL bridge support. |
zipp-0.0.41-javascript-rust.wasm |
JavaScript and Rust, with Axum/SQLx worker-boot support. |
zipp-0.0.41-torch-package.wasm |
The torch package for the -python-base engine. |
zipp-0.0.41-<engine>.wasm.br |
Each WebAssembly module compressed with Brotli (quality 11), about a quarter of its size. Serve it with Content-Encoding: br and Content-Type: application/wasm, or let zipp.mjs load it; the plain .wasm is the default. |
zipp-0.0.41-wasm-embed-kit.zip |
zipp.mjs (the loader and sandbox, version 1.5.0) and its types, the host SDK (1.4.0), the engine's TypeScript declarations, the browser GPU adapter, docs and examples. |
SHA256SUMS |
Checksums of every file. |
Verification
- All release binaries, WebAssembly variants, and the embed kit are built and verified from the tagged commit in release.yml and release-build.yml.
- Every WebAssembly engine module retains the audited 51-function host import surface (plus
zippTorchKernelon Python builds) and the 1 GiB linear memory cap.
Full Changelog: v0.0.40...v0.0.41