Closed OTP-Maintainer closed 3 years ago
sverker
said:
I'm closing this as it's not of high priority for us.
Here is some late feedback:
#1 Would cost runtime overhead. If not payed in your rust wrapper it would have to be always payed by the NIF calling beam instruction.
#2 I can see the use case for this. We already disable GC for some yielding BIFs. To expose it in NIF API would limit possible heap implementations as you need a way to allocate new heap without GC (which was actually quite expensive a number of major releases ago). But maybe it would be worth it.
#3 I don't quite understand, but it sounds like it would cost overhead as process bound ErlNifEnv are today stack allocated.
Original reporter:
hansihe
Affected version:Not Specified
Component:Not Specified
Migrated from: https://bugs.erlang.org/browse/ERL-337