Skip to content

Performance Improvements #354

@mattsta

Description

@mattsta

Hey!

Found your project recently and it looked like fun, so I gave it a try.

When it first ran, I was getting around 64,000 tests per second on my machine, but I thought it could be adjusted to go a bit faster. After 10 hours of working on it, it now runs at 22 million tests per second (laptop cpu 9 cores).

Feel free to steal the ideas out or incorporate things back. A lot of the components are redesigned to be more memory and machine-aware efficient overall and it's going for performance over structure in places. Hopefully it doesn't look too much like slop.

Not doing a full PR because it's basically a complete redesign and there's not much to merge back other than "all the stuff." Also only tested under mac currently but there's some untested x64 helpers in-place too.

My 22 million checks per second version almost 350x faster than the defaults here (not that helps you much, it's still like guessing the worst lottery in the universe): https://github.com/mattsta/Plutus

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions