-
Notifications
You must be signed in to change notification settings - Fork 634
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
Too many memory fragmentation when enabling MQTT #2589
Comments
You version does seem out of date. Last time
Can you elaborate the method that you used to test this? |
Device
ESP8266
Version
1.16.0-dev
Bug description
Too many memory fragmentation when enabling MQTT support. The fragmentation is very high as high as ~30% as seen in the below output.
**heap
initial: 37936, available: 23400, usable: 15488, fragmentation: 32%
+OK**
I debugged and found repeated creation of mqtt topic string creating such memory fragmentation. Is it possible to implement it with small string construct std::string or char* rather than String class construct.
Steps to reproduce
Enable MQTT support and watch for the heap usages.
Build tools used
No response
Any relevant log output (when available)
No response
Decoded stack trace (when available)
No response
The text was updated successfully, but these errors were encountered: