Git Product home page Git Product logo

Comments (13)

ilcn avatar ilcn commented on May 21, 2024 2

I have the same question as Zibri. Intrinsically golang should go faster than nodejs, and I am listening for annouce peer right now. But please let us know if what in the config we can tweek to make the spider mode go faster.
Thanks

from dht.

shiyanhui avatar shiyanhui commented on May 21, 2024

Did you run it in local network? This crawler can't run behind NAT now.

from dht.

Zibri avatar Zibri commented on May 21, 2024

from dht.

shiyanhui avatar shiyanhui commented on May 21, 2024

Is it the sample that you are running?

  • There are two kind of peers message in dht protocol, get_peers and announce_peer. get_peers messages are far more than announce_peer. Only announce_peer is what we want. The example will only print successful BT seed. I don't know what p2pspider print.
  • We got announce_peer message, and then we fetch the BT seed. If it fails, the ip:port will be put in blacklist, and DHT crawler will not fetch it until sometime in the future.

from dht.

Zibri avatar Zibri commented on May 21, 2024

from dht.

shiyanhui avatar shiyanhui commented on May 21, 2024

OK, I'll figure it out.

from dht.

fanpei91 avatar fanpei91 commented on May 21, 2024

I have rewritten p2pspider from node to golang recently. Same efficiency as before, but higher performance. @Zibri

from dht.

Zibri avatar Zibri commented on May 21, 2024

from dht.

fanpei91 avatar fanpei91 commented on May 21, 2024

simdht for golang is here godht

I don't think so c is the way. You need to learn golang 1.9 runtime's performance.

from dht.

Zibri avatar Zibri commented on May 21, 2024

from dht.

Zibri avatar Zibri commented on May 21, 2024

from dht.

Zibri avatar Zibri commented on May 21, 2024

from dht.

Zibri avatar Zibri commented on May 21, 2024

from dht.

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.