Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update jeaiii's itoa() to the latest version #1800

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MasterDuke17
Copy link
Contributor

With some slight modifications to convert it to C (from C++).

My test case, MVM_SPESH_BLOCKING=1 nqp-m -e 'my str $s; my int $i := 0; my $n := nqp::time; while $i++ < 10_000_000 { $s := $i }; say(nqp::div_n(nqp::time - $n, 1000000000e0)); say($s)' decreased from ~0.30s to ~0.29s and the number of instructions reported by callgrind (with only 1_000_000 iterations and not tracking the time) decreased from ~642.2m to ~640.3m.

With some slight modifications to convert it to C (from C++).

My test case, MVM_SPESH_BLOCKING=1 nqp-m -e 'my str $s; my int $i := 0;
my $n := nqp::time; while $i++ < 10_000_000 { $s := $i };
say(nqp::div_n(nqp::time - $n, 1000000000e0)); say($s)' decreased from
~0.30s to ~0.29s and the number of instructions reported by callgrind
(with only 1_000_000 iterations and not tracking the time) decreased
from ~642.2m to ~640.3m.
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