mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
cda2567c36
Replace the two-buffer swap pattern in D&C to_s base case with in-place division using new mpn_div10_9 function. This eliminates the q_base scratch buffer and reduces per-iteration overhead. Compilers optimize the constant division by 10^9 to multiplication and shift operations for better performance. Co-authored-by: Claude <noreply@anthropic.com>