Skip to content

Conversation

@Kelimion
Copy link
Member

Speed up big.Int -> string by extracting 8 (32-bit) or 18 (64-bit) base 10 digits per bigint divmod.

Extract 18 (64-bit) or 8 (32-bit) digits per big division.
This gives a 2.5x speedup for a 1024-bit bigint.
@Kelimion Kelimion merged commit 1efbe5f into odin-lang:master Nov 27, 2025
9 checks passed
@Kelimion Kelimion deleted the faster_big_itoa branch November 27, 2025 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant