-
Notifications
You must be signed in to change notification settings - Fork 9
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
Slow for.zs #352
Comments
The list.push It has improve x20 by doing double size when reaches capacity. It has still an performance issue:
|
Has been tested that if we don't use vm_find_native_function it speeds up x2.69. So with this improve, Lua is fast 0.9/0.04 = x22 times that ZetScript |
Has been modified zs_string constructor for fast creation. Furthermore, in the "vm_load_field" it had a CPU overload in searching member symbol. Because instruction value_op2 is not used, it has been used to save the last symbol searched in the instruction. In general the performance has been increased by x4. So in metrics ZetScript longs 0.6 seconds. In general has been improved by,
And now,
|
Description
For 'for.zs' that makes a performance test of a 1000000 of iterations that covers .push and add it shows an important slow respect other languages. For example one iteration in lua it takes 0.07s whereas ZetScript it takes ~64s
For wren it takes 0.18s
Has been detected that the slow part of the execution is affected to push and load,
Test code
Slow code 1 (60s)
Byte code
Slow code 2 (60s)
Byte code
Fast code (77ms)
Byte code
The text was updated successfully, but these errors were encountered: