Closed hhugo closed 1 year ago
Reading 100_000_000 zero bytes from /dev/zero before: 2.44 after: 1.23
I've squashed commits. @smuenzel, do you have time to review some code ?
I believe truncated utf8/utf16 were not properly recognized as malformed. My last commit https://github.com/ocaml-community/sedlex/pull/124/commits/5851233b8943d1c9ebe94192f974d452654eb8ee tries to fix this.
I've added some tests push fixes
I've rebased, squashed commits again, move test first so that we can see the effect of the change in the test.
To solve #45, we would like to not make unnecessary blocking read on channels. One key function to solve this is
input
which returns the number of bytes read and doesn't block if some bytes are available in the buffer. In order to rely oninput
, we need to give up the current (short) implementation offrom_channel
that rely onfrom_gen
fix #45 replace #77