3 ms·
This might be more complexity than you are ready for, but here's what I suggest: * Remove the notion of two different modes. * Remove the ability to switch bet
by kylecordes 11y ago
This might be more complexity than you are ready for, but here's what I suggest:
* Remove the notion of two different modes.
* Remove the ability to switch between two modes. Because with this capability, people will inevitably switch it to the greedy mode, even if they have no need to, out of an inane fear that they might need to.
* Implement your hybrid mode, again without a "switching" mechanism:
* In your implementation of "rarest first", artificially apply extra weight to the next N segments that will be needed for the current play point.
I think this will result in very good behavior, in all cases. It is completely hands-off. Users tight on bandwidth will inevitably spend all of their bandwidth downloading the extra weighted segments needed to place soon. Users with any spare bandwidth will easily get past the next and segments, and then the rarest segments will automatically be the next fetched. All without any switches for users to set wrong.
- feross 11y agoThis is an excellent suggestion – we're actually planning to do basically what you describe. And you're totally right that the user shouldn't need to switch between the modes manually. There's no UI for that option, and I don't think there should be. That's just an option of the underlying WebTorrent torrent engine (https://github.com/feross/webtorrent https://github.com/feross/webtorrent), though even that should probably be removed. :)