Skip to content

[RFC] Faster BigInt Implement via Malachite? #4797

@qingshi163

Description

@qingshi163

Summary

Currently we are using a num-bigint, a pure rust implement for BigInt support, but at lease now the implement is bit naive especially do not have small int optimize witch is a big deal.

The fastest BigInt implement I know is gmplib witch part of GNU, there is a high-level wrapper https://docs.rs/rug/latest/rug/ witch looks really nice.

Detailed Explanation

Drawbacks, Rationale, and Alternatives

I am worried about the platform supporting mostly for webassembly, I don't see gmplib has offical support for that. and compiling on Windows seem like depends on MingW.

Otherwise we probably need to have our own implement.

Metadata

Metadata

Assignees

Labels

A-designAbout RustPython's own implementationRFCRequest for comments

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions