You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'll start with the big part. IPFS Companion is a browser extension. Extensions run in the main web UI thread. Service / web workers run in their own thread.
To improve performance of Drive, we could implement a service worker version of IPFS running in the browser.
This would not be compatible with IPFS Companion, so this means dropping support for IPFS Companion. It has about 20K installs and lets users run a local IPFS node.
Since we focus on making our services work web native in all browsers, even if they use some cutting edge tech, relying on extensions isn't in line with our goals.
The problem is that we need a separate ipfs daemon in every webpage. So, performance when running multiple apps / across multiple domains may be an issue.
Some more context on why I think service workers are not compatible, or bad for performance, in regards to IPFS Companion at the moment:
We send a request to some (possibly non-existent) url which is intercepted by our service worker
Service worker COULD now contact the main thread to use IPFS Companion, but this would block the main thread. Because, the ipfs stuff is performed on said thread.
Another thing I imagine would be troublesome, is the transport layer between threads. I don't think you can do streaming.
I'll start with the big part. IPFS Companion is a browser extension. Extensions run in the main web UI thread. Service / web workers run in their own thread.
To improve performance of Drive, we could implement a service worker version of IPFS running in the browser.
This would not be compatible with IPFS Companion, so this means dropping support for IPFS Companion. It has about 20K installs and lets users run a local IPFS node.
Since we focus on making our services work web native in all browsers, even if they use some cutting edge tech, relying on extensions isn't in line with our goals.
The problem is that we need a separate ipfs daemon in every webpage. So, performance when running multiple apps / across multiple domains may be an issue.
Relevant discussions from IPFS land:
The text was updated successfully, but these errors were encountered: