Replies: 2 comments 1 reply
-
|
W.r.t. production ready, we are getting close but I would say we are not 100% there yet:
==== W.r.t. the Matter C++ SDK taking too much space... well, our footprint is not that big, i.e. ~ 500 - 700KB with all optimization settings on, but if you factor in the inherent bloatness of ESP-IDF (it is a STD toolkit with a C runtime library) we might approach the 1MB boundary as well. Also, it is very unfair to say that the Matter C++ SDK is not designed with embedded in mind. Quite the opposite. The Matter C++ folks put A LOT of effort into tracking and optimizing their flash footprint. More than what we currently do in fact. So maybe you can play with the optimization settings of your C ESP IDF project a bit? As in reducing logging (log messages take a lot of space) and optimizing for size, if you don't do that already? ==== W.r.t. wrapping
But if you are anyway using a lot of C with ESP-IDF, it does not seem much of a win if the "matter" portion is in safe Rust. Also, ESP-IDF itself allocates a lot, so the "no-alloc" nature of ==== Now, if you plan to completely migrate your firmware to Rust, then it is a different story of course. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for quick and comprehensive answer @ivmarkov I didn't mean that in offense with C++ Matter team at all! I guess I had mixed bag of experiences with esp-matter implementation which is based on it, which our team had to do a lot of engineering decisions around our code base, just to support it. Our team is currently in the land of plucking nails with hands, just to save every byte of flash, so my question came because of that, we've had some experience with wrapping rust in our embedded C code with good results, but I'll listen to you that's not a great idea in regards to Matter 😄 We're actually in discussions about migration to embedded Rust, which would end up using this library, so I'm holding thumbs up for future of this project 😄 Cheers and good luck! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm so happy that this project exists!
I'm currently using the standard matter library in my ESP IDF project and we've had w lot of issues in regards to its binary size, which takes around 1.3MB on flash
It seems like this project puts a good focus, on being well supported on embedded devices, and I was wondering whether this makes library binary size smaller as well?
Would you say there could be a possibility, for using this library already for production ready devices?
Also, do you think it'd make sense, for wrapping this rust implementation for usage in C embedded projects on ESP?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions