-
-
Notifications
You must be signed in to change notification settings - Fork 759
findings for branch experimental_compact_vars #1631
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
Comments
This looks like a bug in the |
Good spot though - thanks! |
So this is the line, any hints how to fix it? https://github.com/espruino/Espruino/blob/master/src/jsvar.h#L272 |
Just done. |
Just tested, works |
Not shure if all those test should be successful for a ESP8266 baord results of test_language.js
|
test_language definitely fails even on the Linux build. I guess the real question is whether there's a difference between the results of this branch and the master branch? |
Wow even some fail with node v8.9.4 on mac os x
|
Next Steps:
|
Test results: master
experimental_compact_vars
|
Thanks, this is really reassuring! So there is one difference with "Number of reference errors" - do we know what the test is? |
This branch is easier to handle than trying to get the exception handler to work! branch experimental_compact_vars
|
yep there is one difference, have to check |
Finding AFAIK there are some regexp issues https://github.com/espruino/Espruino/search?q=regexp&type=Commits |
Oh right, nice - so it's just that I haven't merged with master branch in a while? Can you try that test now and see if it works? I just merged in all the recent changes. |
Yes, it works, thanks for that merge. |
update
|
Perfect - so every test you've run performs identically now. Maybe I should think about merging this... I guess only downside is maybe reduced performance, but it should give a lot more efficiency on devices with > 1024 vars. |
Open on my test list:
anything else comes to your mind? |
Nope... As far as I'm concerned, if the main test cases work then it's 99.9% guaranteed that the hardware libs won't notice any difference either - but obviously it's good to be sure because I regret it every time I think that :) |
Successfully tested:
|
vars: 1700 require('ESP8266').getState(); process.memory() |
ready to go 😉 |
please merge again |
Just done. Running through the diffs again this looks pretty good - I just need to put some time aside to test it on the other Espruino boards as right now this'll affect those too. |
I can take over Pico and Espruino Wifi testing |
Can you please merge again Have you thought about taking this life, as you know it free much space :) Edit Can you please merge again - was able to merge it into my fork - so done |
Just merged it again. I was just looking at merging this into master, but it really bumps up the code size so it's going to be a bit of work to get Espruino Original and boards like micro:bit working with it. It'll take a bit more thought |
I was using it for ESP8266 1MB boards with no problems. |
Yes, but they have 1MB of flash, not 256k :) |
Uh oh!
There was an error while loading. Please reload this page.
build for ESP8266_4MB
negative values in vars found in test_exception_function.js
Edit: tested with variables 1000 and 1600
The text was updated successfully, but these errors were encountered: