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
Increase network buffer size #556
Comments
As discussed in the forum thread, sending data in 64 byte chunks is as thought slow. On the ESP8266 board, it is quite noticable. |
... although on ESP8266 you're allocating separate buffers - so for instance if we moved to 1500 bytes, that's presumably 3kB of RAM that you've now had to use up, which drastically reduces the amount of JS variables you can safely have. |
I'm assuming that when What about making the buffer size a runtime configurable system property and allow the user to decide? |
Just a note here, it seems the ESP8266 build has a max packet size of 544 bytes, so that is all we have to care about. Some discussion here: http://forum.espruino.com/conversations/278181/#comment12649305 |
Already fixed: 34326d0 |
See http://forum.espruino.com/conversations/272025/
This is currently 64, but could hopefully be much bigger. Perhaps for sending we could even use
aalloc
to allocate just what we need.Only thing to beware of is unless the CC3000 build gets massive static buffers put in too, it'll crash when we try and send more than 64 bytes (so should probably limit the max size in that case).
The text was updated successfully, but these errors were encountered: