-
Notifications
You must be signed in to change notification settings - Fork 9
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
Reimplementation of the library #56
base: main
Are you sure you want to change the base?
Conversation
Using lazy sequences by default is too opinionated. They incur a lot of overhead and are tricky to manage. Rather, we can expose a mechanism similar to `ocaml-h2` that uses a `schedule_read` function expecting two callbacks.
(for already closed stream) anmonteiro/ocaml-h2#175
When multiple messages are batched and read into the buffer, only the first message was extracted. Remaining messages would not be extracted until the next invocation of `on_read`.
@wokalski if you use Edit, got confused with my compiler versions. |
statmemprof ftw!!! |
@tmcgilchrist will statmemprof be available in 5.2 or only in 5.3? |
Only in 5.3. Based on this libraries dependencies it should be possible to build against that version. |
just a little update - we are using this on production and we will probably push the final commits to this soon. |
This PR contains a reimplementation of the library. Only the
eio
variant works for now. The goal of the reimplementation is to make it more:Building an opinionated workflow is not a part of this library, I will implement it in a separate library.
TODO
Bigstringaf
directly to avoid copying. string variants can be put on top for those who need them simply in the userspace. The string variants impede the performance due to excessive copying.extra
part for example)'ctx
to server request handlers. Not sure if it's needed - maybe can be done in the user space, maybe has to be a part of the library - will experiment with it.