Justin Collins wrote:
There are two things in your code that probably contribute to it being
slow: using recursion and creating a new string and copying the old
one each time you add a character.
In my testing, this was about 80% faster.
Yes, thanks for the tip, though I'm still unhappy about the speed for
these kind of I/O scripts on neko (perl is 6 times faster, surprisingly
php is about the same speed as neko).
- Niel
Hope that helps.
-Justin
--
Neko : One VM to run them all
(http://nekovm.org)