I have been debugging why part of my program runs so slow and I have narrowed it down to whether or not there is a DHT component in Libp2p/Helia.
In my testing I found it took around a minute to add a pin with a DHT and around 10s without. The pinned content is on another node on the same machine with a direct connection to it so network issues should be minimal.
I’ve found in the tests for bitswap that the timeouts are quite different with DHT and without DHT so I’m guessing this behavior should be expected:
describe('bitswap without DHT', function () {
this.timeout(20 * 1000)
...
describe('bitswap with DHT', function () {
this.timeout(60 * 1000)
Why does Bitswap (Helia) use the DHT when it is so much slower? Is there an option to configure Helila/Bitswap to not use the DHT even though it is present?