Giter Site home page Giter Site logo

userProfile can't grow very large about gittorrent HOT 3 OPEN

cjb avatar cjb commented on July 21, 2024
userProfile can't grow very large

from gittorrent.

Comments (3)

cjb avatar cjb commented on July 21, 2024

@splinterofchaos We could actually also just increase the size limit. The mainline bittorrent DHT only guarantees 1000 bytes per key (clients could store more), but we're not using the mainline bittorrent DHT itself, just its protocol.

It would be our first breaking change against mainline DHT, though, so maybe it's worth trying to avoid.

from gittorrent.

splinterofchaos avatar splinterofchaos commented on July 21, 2024

we're not using the mainline bittorrent DHT itself, just its protocol.

That makes sense, but might the libraries implementing the DHT and protocol decide to reject large messages at any time? If that ever happened, though, I suppose we could use a forked 'n patched version.

Still, if we do stop limiting to the size, a compressed userProfile would mean transferring the same amount of information using less bandwidth. Though, with network speeds what they are, maybe that's not an issue.

from gittorrent.

cjb avatar cjb commented on July 21, 2024

It's the bittorrent-dht module. It currently enforces the 1000 byte limit; we'd just ask the maintainers to add a constructor option to relax that limit (perhaps by 10-20x in our case).

from gittorrent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.