Skip to content
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

Merged
merged 1 commit into from
Sep 26, 2018

Conversation

Stebalien
Copy link
Member

New go-buffer-pool repo: libp2p/go-buffer-pool.

@kevina
Copy link
Contributor

kevina commented Dec 21, 2017

@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?

@Stebalien
Copy link
Member Author

Yes and I will fix them as well. The interface just really sucked.

@kevina
Copy link
Contributor

kevina commented Dec 21, 2017

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
libp2p/go-buffer-pool@pre-extract...post-extract

Maybe if we reset master to pre-extract we can create a proper pull request for review...

@Stebalien
Copy link
Member Author

Stebalien commented Dec 21, 2017

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.

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 (git diff 5ef65a036f9c5254313d3e123b3fe6c4b6bcad6e..master).

(it's about 50 lines of actual code).

Stebalien added a commit to libp2p/go-mplex that referenced this pull request Sep 25, 2018
@ghost ghost assigned Stebalien Sep 25, 2018
@ghost ghost added the status/in-progress In progress label Sep 25, 2018
Stebalien added a commit to ipfs/go-ipfs-chunker that referenced this pull request Sep 25, 2018
It has a nicer interface and we don't even need the rest of the msgio

Prereq for: libp2p/go-msgio#9
@Stebalien Stebalien requested review from bigs and removed request for kevina September 25, 2018 22:58
@Stebalien
Copy link
Member Author

@bigs

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).

Stebalien added a commit to libp2p/go-mplex that referenced this pull request Sep 25, 2018
Stebalien added a commit to libp2p/go-mplex that referenced this pull request Sep 25, 2018
Copy link

@bigs bigs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@Stebalien Stebalien merged commit 5b7d4ee into master Sep 26, 2018
@ghost ghost removed the status/in-progress In progress label Sep 26, 2018
@Stebalien Stebalien deleted the feat/extract-mpool branch September 26, 2018 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants