-
Notifications
You must be signed in to change notification settings - Fork 12
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
extract buffer pool (and simplify interface) #9
Conversation
@Stebalien This is doing a bit more then just an extraction. Are there any others packages that use the the buffer pool from this package? |
Yes and I will fix them as well. The interface just really sucked. |
Okay, it is difficult for me to review this without seeing what changed in the buffer pool code. I attempted to push tags to make a pull request out of the changes, but github is refusing, likely because the code is already in master. At very least you can see the changes in go-buffer-pool from the extraction: libp2p/go-buffer-pool@pre-extract...master Maybe if we reset master to pre-extract we can create a proper pull request for review... |
I recommend you simply review it as new code. The new code is simpler than the old code. If you actually want to see the diff, you can look at everything since 5ef65a036f9c5254313d3e123b3fe6c4b6bcad6e ( (it's about 50 lines of actual code). |
Prereq of libp2p/go-msgio#9
862a17d
to
5854271
Compare
It has a nicer interface and we don't even need the rest of the msgio Prereq for: libp2p/go-msgio#9
Can you take a look at this? I finally yoloed whyrusleeping/yamux#5 so we now have two buffer pools (as that PR uses the buffer pool from the new go-buffer-pool package). |
Prereq of libp2p/go-msgio#9
Prereq of libp2p/go-msgio#9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
New go-buffer-pool repo: libp2p/go-buffer-pool.