Open anuragsoni opened 3 years ago
Any chance of using Cstruct.t
for this? Would save copying between all the various versions of this type. Eio is already wrapping luv buffers in cstructs.
There is a chance, but I haven't had time to evaluate the various options yet.
It might be nice to represent
Buffer.t
using a record as opposed to a straight up bigstring. ex:In some simple benchmarks in the past i've noticed the
sub
operation to be a little faster for the record based representation, than using thesub
operation fromBigarray.Array1
.Potentially relevent discussion: https://discuss.ocaml.org/t/hannes-mehnert-interview-about-mirageos-and-ocaml-by-evrone/5784/10