Timeline for Is std::array (from the C++ STL) safe to use on arduino? Does it use dynamic memory allocation?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 8, 2019 at 4:02 | vote | accept | Mustard Tiger | ||
Oct 7, 2019 at 21:31 | answer | added | tttapa | timeline score: 4 | |
Oct 7, 2019 at 19:24 | comment | added | Mustard Tiger | @Michel Keijzers Also, FYI, I am running this on a Mega, so it does have more memory. But still it isn't a lot, in the grand scheme of things. | |
Oct 7, 2019 at 19:14 | comment | added | Mustard Tiger | "I would write them myself and stay in full control of both memory and performance decisions" That's the eternal question. My time spent writing it myself, or my potential time spent figuring out where my memory went. I'm working on other parts of the code in the mean time, but I hope someone who has already made this mistake can chime in before I commit to one or the other. | |
Oct 7, 2019 at 19:11 | comment | added | Michel Keijzers | I don't put it as answer, because it's not directly answering your question. It seems it is dynamic memory allocation safe to use std::array, however, you still don't know what's under the hood, maybe memory consumption is an issue (stack size of local variables of nested functions called by the public functions for replacing and iterating). If you need some minor functions, I would write them myself and stay in full control of both memory and performance decisions. | |
Oct 7, 2019 at 18:55 | review | First posts | |||
Oct 7, 2019 at 19:05 | |||||
Oct 7, 2019 at 18:52 | history | asked | Mustard Tiger | CC BY-SA 4.0 |