Skip to content

RustPython initialization is slow #1047

@michelhe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions