Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Support handling decoding errors #293

Open
keirlawson opened this issue Nov 3, 2021 · 1 comment
Open

Support handling decoding errors #293

keirlawson opened this issue Nov 3, 2021 · 1 comment

Comments

@keirlawson
Copy link

Right now the FrameDecoder typeclass seems to assume that decoding will always be successful, it would be great to have a way to raise errors in cases where it is not.

@iRevive
Copy link
Owner

iRevive commented Nov 8, 2021

I've experimented with decode(bytes: Array[Byte]): Either[E, A] a while ago. The main concern is the throughput of the system. The performance degradation with an either-based decoder was ~15%.
I will do a few more measurements again and consider further steps.

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

No branches or pull requests

2 participants