Skip to content

pysimlin: published wheels are built without mimalloc #1096

Backlog

Description

@bpowers

The pysimlin wheels on PyPI are built without mimalloc, so installed pysimlin compiles models more slowly than a local build.

Example

.github/workflows/release.yml runs cargo build --release --target "$RUST_TARGET" -p simlin.
src/pysimlin/Makefile and src/pysimlin/scripts/build_wheels.py both add --features mimalloc.

C-LEARN on x86-64 Linux, median of 10, release build without LTO as the wheels are:

system allocator mimalloc
parse 25.8 ms 22.8 ms
compile 67 ms 56 ms
run 68 ms 68 ms

These are from a native Rust harness, not from an installed wheel.

Why it matters

Everyone who installs from PyPI gets compiles about 20% slower than what we measure.
Compiles repeat on every edit in a notebook.

Fix

Add --features mimalloc to the build line in release.yml.
One line; run the release workflow by hand on a branch (it publishes only on a tag) to check all three platforms link.

Pointers

  • .github/workflows/release.yml, the "Building libsimlin" step
  • src/pysimlin/Makefile, src/pysimlin/scripts/build_wheels.py

Activity

  1. added
    bug
    ci
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugci

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions