Durin icon indicating copy to clipboard operation
Durin copied to clipboard

Question/measurement: What is the difference between performance/resources used between IPFS backends?

Open meandavejustice opened this issue 2 years ago • 2 comments

Durin could be a good test case/sandbox for testing and measuring different IPFS backends on mobile.

For this we would need to contact each of the teams maintaining these projects and have them do the heavy lifting or work closely with us on integrating. This could also benefit their DX and documentation.

Some ideas for projects to try out:

  • Kubo
  • Iroh
  • Nabu

Iroh

https://github.com/n0-computer/iroh From initial discussion from discord:

depends on what you are looking for, if you already have rust compiling for mobile, you can just pull in the crate, and it will for the most part just work

When asked about caveats on mobile:

So far, nope! Iroh has no configuration, and is tested across a whole bunch of architectures, including old android devices.

Steps:

Nabu

https://github.com/Peergos/nabu

Getting Java to run on ios may be an option.

Same ideas as iroh integration, although appears to be less flexible (solely based on being written in Java and my ignorance of how that works in ios world)

meandavejustice avatar May 01 '23 18:05 meandavejustice

You can also build native iOS executables from Java using https://gluonhq.com/

We are working on this for Peergos for example here: https://github.com/peergos/mobile

ianopolous avatar May 02 '23 09:05 ianopolous

Kubo:

  • afaik android/ios is not officially supported, but if you are able to run Kubo on these platforms, the modern default settings should be ok
  • we are encouraging people to use https://github.com/ipfs/boxo library to build their own node instead

Aside from Kubo, depending on the feature set you need, there may be better (lighter) implementations for mobile:

  • iOS / Android
    • There is https://berty.tech/docs/gomobile-ipfs / https://github.com/ipfs-shipyard/gomobile-ipfs
  • Android
    • https://gitlab.com/remmer.wilts/ipfs-lite/-/tree/master (based on https://gitlab.com/remmer.wilts/threads-lite/)

lidel avatar May 08 '23 23:05 lidel