chumak icon indicating copy to clipboard operation
chumak copied to clipboard

Zero-copy support for IO Data Lists like in Phoenix EEX

Open heri16 opened this issue 2 years ago • 2 comments

IO lists in erlang/elixir presents significant latency and memory use improvements.

Are IO lists supported by Chumak as a sort of zero-copy or lazy binary serialization of payload?

https://bignerdranch.com/blog/elixir-and-io-lists-part-1-building-output-efficiently/

https://bignerdranch.com/blog/elixir-and-io-lists-part-2-io-lists-in-phoenix/

heri16 avatar Oct 22 '21 07:10 heri16

FYI: IO Lists are now officially called IO data.

https://hexdocs.pm/elixir/1.12/IO.html#module-io-data

The documentation explains why it can be used as a more efficient alternative to binaries in certain situations.

heri16 avatar Oct 22 '21 07:10 heri16

I don't know. Feel free to make a PR if your use case requires it.

drozzy avatar Oct 22 '21 14:10 drozzy