Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

[WIP] feat: initial implementation of pull-streams based multiplexer #76

Closed
wants to merge 12 commits into from

Conversation

dryajov
Copy link
Member

@dryajov dryajov commented Apr 2, 2018

the multiplexer itself is being implemented as a separate module under libp2p/pull-mplex#1. This is done for reusability purposes but it should be moved under the libp2p org at some point.

@dryajov
Copy link
Member Author

dryajov commented May 9, 2018

NOTE: I've added pull-mplex as a git dep, so that we can test with it across different dependencies. This is temporary and should be changed once pull-mplex is released.

@coveralls
Copy link

coveralls commented May 9, 2018

Pull Request Test Coverage Report for Build 216

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 5 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+9.02%) to 87.5%

Files with Coverage Reduction New Missed Lines %
../src/index.js 2 91.3%
../src/muxer.js 3 84.38%
Totals Coverage Status
Change from base Build 212: 9.02%
Covered Lines: 47
Relevant Lines: 52

💛 - Coveralls

@daviddias
Copy link
Member

I want to preserve both implementations and make it easy to switch between both and have benchmarks in this repo. This translates to:

  • Benchmarks in this repo that compare both
  • Tests that test one implementation against the other using interface-stream-muxer tests
  • Only publish to npm the deps for the version that we want users to use and have the other version deps as devDeps

@dryajov
Copy link
Member Author

dryajov commented May 12, 2018

Ok, most of this is already in pull-mplex and can/should be moved. There are integration tests for the previous and new versions, as well as benchmarks, also this already runs against interface-stream-muxer tests.

I'll move them over to this repo.

@daviddias
Copy link
Member

Sounds good! Thank you :)

@mkg20001
Copy link
Member

@dryajov What's the status of this pr? Is it going to be continued? Is it superseded by pull-mplex?

@dryajov
Copy link
Member Author

dryajov commented Jan 11, 2019

yes it is, but being that pull-streams are being replaced in favor of async iterators, I wonder if it makes sense anymore.

@mkg20001
Copy link
Member

@dryajov ws-star is also "getting replaced" by rendezvous, yet the progress on that is so fast that I decided to just build stardust.

Also wouldn't it make sense to have this much effort in production at least for a couple weeks? Better late than never ;)

@dryajov
Copy link
Member Author

dryajov commented Jan 11, 2019

@mkg20001 I agree, I would very much love to see this in prod, but I doubt I'll be able to finish it at this point or there is time from the rest of the team to review it, plus the move to async, might make the pull-stream approach obsolete altogether. Although, it might be a good benchmark to compare against along size node streams.

As a start tho, can we get a preliminary review of pull-mplex and this?

@daviddias
Copy link
Member

For the reader:

@daviddias daviddias closed this Sep 12, 2019
@daviddias daviddias deleted the feat/pull-stream branch September 12, 2019 11:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants