Skip to content

RustPython initialization is slow #1047

Description

@michelhe

A recent change probably made the interpreter extremely slow, this can be demonstrated by a simple benchmark:

# On current master
cargo build
target/debug/rustpython tests/snippets/strings.py  2.25s user 0.01s system 98% cpu 2.301 total`

# On master~100
cargo build
target/debug/rustpython tests/snippets/strings.py  0.13s user 0.00s system 98% cpu 0.139 total

I'm currently doing a git-bisect to identify which change introduced the poor performance, and I'll update what I find.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions