Skip to content

converting Int and UInt64 to BigInt is inefficient #1

@jlapeyre

Description

@jlapeyre

Some methods like this:
inplace!(::typeof(+), a::BigInt, b::BigInt, c::Integer) = inplace!(+,a,b,convert(BigInt,c))
should be calling add_ui! if the argument is a builtin signed or unsigned int. Converting to a BigInt is expensive.

I suppose there are a few other functions in GMP.MPZ that have not yet been supported.

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