https://slatedb.io logo
K, I think this is ready for more 👀 https://gith...
# general
c
K, I think this is ready for more 👀 https://github.com/slatedb/slatedb/pull/450
a
This LGTM, just to make sure that I understood the result of the discussion invalidates this part of the current PR description, right? > Finally, I changed the return values for get and the iterators to use Vec instead of Bytes. This seemed to be the standard for other APIs. This does result in a copy, so it's not as memory efficient as returning the Bytes.
c
Ah, good catch, yes that's outdated. Let me update.
Done!
LMK if that makes sense
a
Yup! The new description makes sense - last thing (I probably should just test this myself but since I have you) the README removes the
Bytes
dependency, is that not necessary after re-introducing Bytes?
c
Yea, it seems not necessary. I also re-exported
bytes
in our
lib.rs
in case users don't want to directly import it. But it seems for returns, you don't need to have the library included.
(Kinda weird.. not totally sure how this works)
a
haha yeah between this and David's recent fix with the default configuration I understand less and less about rust visibility rules
anyway approved
c
Ahhh.. it sounds like it might be because Bytes has
AsRef<[u8]>
.. so it might just converted it to a slice...
:notsureif:
Lemme validate this anyway..
Well it works.. but it sees it as a
Bytes
... no idea how it is seeing that
Ok, this makes sense. (From ChatGPT 4o)
a
got it, that's pretty similar to Java. I guess the
into
magic is just hiding the fact that it is just using
Bytes
transitively
c
yea
2 Views