Mastodon Feed: Post

Mastodon Feed

dysfun@treehouse.systems ("gaytabase") wrote:

i guess we get to choose between synchronising allocation of pinned data or wasting memory. i expect pinned data is generally going to be fairly long-lived (buffers and such). you only need to pin data so long as C stuff can get at it, which is usually only for the duration of an ffi call, but async i/o apis of course break this assumption.