pure-c / purec

C backend for PureScript
232 stars 8 forks source link

Don't heap allocate purs_cont_t #62

Open felixSchl opened 3 years ago

felixSchl commented 3 years ago

Explore not heap-allocating purs_cont_t. Continuations don't require heap allocation because their are of statically known size and only reference heap-allocated values. This would slightly bloat the purs_any_t type but would likely pay off due to very frequent allocation / free / ref counting calls.