holepunchto / corestore

A simple corestore that wraps a random-access-storage module
https://docs.holepunch.to
MIT License
72 stars 31 forks source link

add _autoReplicate option to enable passive replication #46

Closed Nuhvi closed 10 months ago

Nuhvi commented 1 year ago

This PR is meant to enable seeders with 1000s of cores, to avoid opening 1000s of replication channels until their remote peers open it themselves.

mafintosh commented 1 year ago

@Nazeh did it help with your issue?

Nuhvi commented 1 year ago

@mafintosh IOS simulator on m1 masks all performance issues, so I am waiting for the team to confirm tomorrow, especially with Android builds

But this is a problem regardless (1000s of unsolicited messages explain performance and data consumption issues), and this PR does solve it.

Will let you know if it was the only issue.

LuKks commented 10 months ago

Superseded by https://github.com/holepunchto/corestore/pull/66

Thanks for the fix and very useful test!