holepunchto / hyperdrive

Hyperdrive is a secure, real time distributed file system
Apache License 2.0
1.86k stars 135 forks source link

Invalidated and downloaded event #155

Closed pfrazee closed 1 year ago

pfrazee commented 7 years ago

It'd be really nice to have events for when files are modified and then downloaded. I'm doing like this right now and that relies on a lot of .has() calls, which are not efficient.

pfrazee commented 7 years ago

I solved my algorithm issue with this commit https://github.com/beakerbrowser/pauls-dat-api/commit/56ad3cecc717b09ba4392664fed8d5c392272f5d. Still relies on has() calls but it's much faster.