Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
heri16 opened this issue Oct 22, 2021 · 2 comments
Open

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

heri16 opened this issue Oct 22, 2021 · 2 comments

Comments

@heri16
Copy link

heri16 commented Oct 22, 2021

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 heri16 changed the title Zero-copy support for IO Lists like in Phoenix EEX Zero-copy support for IO Data Lists like in Phoenix EEX Oct 22, 2021
@heri16
Copy link
Author

heri16 commented Oct 22, 2021

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.

@drozzy
Copy link
Member

drozzy commented Oct 22, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants