Skip to content

Maybe test an idea: cell pool for bignums #833

@jpellegrini

Description

@jpellegrini

I tested removing the allocation of mpz_t and reusing the old cell in abs (which is wrong, I know, it's just for understanding the impact), and the code ran 10x faster.

So maybe we could have a bignum pool?

i don't know if what is costly is allocating, initializing, or both... But we could try.

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