Replies: 2 comments 1 reply
-
That's a good question, @retsyo. Arturo isn't on its stable version yet, we did not reach v1.0 and the language still lacks a lot of fundamental features. But, oh well! You know... A small team with a lot of work to be done. IMO, performance should not be the focus for now, we have more things to take care, like robustness and fundamental features, as modules and fix the UI lib and a lot of another broken things.
|
Beta Was this translation helpful? Give feedback.
-
I've just found the time to properly investigate your message and I have to admit it has lead to some interesting conclusions. TL;DR: apparently, I have to re-work some details regarding the Iterators module, as well as their implementation and performance. Now, not that you're going to see any major performance breakthrough, but a few ideas:
As I said above, doing all this, you won't see any impressive performance gain (you will, but not as expected). So... food for thought for me to see how we can improve it even more. (admittedly, it appears that Nim's v2.0 hasn't helped either - since I have noticed some performance drop merely because of the transition, but there are also internal things in Arturo's codebase that could be better - I guess) So... back to work! Thanks for pointing it out! I'll definitely use this as a basis for testing and improving things! 🚀 |
Beta Was this translation helpful? Give feedback.
-
I met a stupid speed bench topic:
in 0-N, how many numbers can be devided by 7?
The code should use native LOOP statement only supplied by the language. On my PC, 41.09 seconds is used by Cpython 3.10.9.amd64. However, arturo takes 150 seconds!I did not make more comparision with various tasks. In the stupid loop task, arturo behaves bad. So my question, may be biased, are
int(N/7)+1
which is faster"Thanks
python code
and arturo code
Beta Was this translation helpful? Give feedback.
All reactions