dynstack icon indicating copy to clipboard operation
dynstack copied to clipboard

Alloc free behind feature flag?

Open MathiasKoch opened this issue 5 years ago • 2 comments
trafficstars

Would you be open to a PR adding support for a heapless version behind an alloc feature flag, using heapless::Vec?

If this is even possible, but i can't see why not.

MathiasKoch avatar Feb 17 '20 08:02 MathiasKoch

For sure, yes! If you have a PR that implements it, fire away.

archshift avatar Feb 18 '20 09:02 archshift

Hmm. After taking a second look at this, it might not be as easy a win as initially thought.

I forgot to look at alloc/dealloc usage, and just had my eyes on Vec.

Will keep an eye on it though, in case i figure something out, though it might not be right now.

MathiasKoch avatar Feb 18 '20 12:02 MathiasKoch

heapless version behind an alloc feature flag

This sounds backwards. Anything named alloc should use the heap, not the other way around.

faern avatar Jun 26 '23 08:06 faern