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

Streaming performance: kotlinx-io & Okio integrations #2743

Open
qwwdfsad opened this issue Jul 11, 2024 · 0 comments
Open

Streaming performance: kotlinx-io & Okio integrations #2743

qwwdfsad opened this issue Jul 11, 2024 · 0 comments

Comments

@qwwdfsad
Copy link
Member

See #2742 for the benchmarks.

Currently, decoding from the buffered source using kotlinx-serialization is unreasonably slow compared to Moshi.

One of the reasons is that we do not leverage select API that potentially requires #2240 to be implemented first.

But even with this API out of the equation, we still have a single bottle-neck -- byte-by-byte codepoint reading (see the profile attached), and that definitely can be more straightforward and efficient (e.g. using raw access to the underlying segments).

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

No branches or pull requests

1 participant