Skip to content

Key generation is super slow #112

@Snowiiii

Description

@Snowiiii

Hello, I' coming from RustCrypto/RSA#144 and RustCrypto/RSA#454 and wanted to ask why the generation is currently so slow especially in debug mode (even 10ms in release), Currently it looks like most of the overhead comes from cargo:index.crates.io-1949cf8c6b5b557f:crypto-primes-0.7.0-pre.8:src/hazmat/miller_rabin.rs::test_base_two but other things are also causing the slowdown, Here is an screenshot from samply

Image

Would be great if this can be fixed because this is literally the only thing which prevents my Server from startup within 0ms

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