-
Notifications
You must be signed in to change notification settings - Fork 74
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
Implement BinaryAppender #47
Conversation
Hi @axw, thanks for the PR! This looks promising so far, although I'm not the one to pull the trigger on this (@seiflotfy is), some general feedback:
|
Ah, speaking tests, there is one thing I forgot: Ideally a test would also include an |
I added a doc comment, but haven't added an Example test. There aren't any existing ones, and adding one just for AppendBinary feels a bit contrived, without making a very complicated example. Let me know if you have any ideas of an example you'd like added. I did end up adding a benchmark, because I found a win for existing callers of MarshalBinary:
Stats for just this PR:
|
@axw Cool, just checked all the changes and this looks very promising! Sorry, had to delete your first comment answering my questions: I messed up when trying to quote your response and ended up overwriting your response with my answer 🤦 Actually there is an undo button on GitHub but I was to fast deleting your comment that I messed up 🤦 |
Haha no worries @lukasmalkmus :) |
Implement the BinaryAppender interface in sketch types, so they can be marshalled to an existing slice.
Fixes #46