Code Monkey home page Code Monkey logo

Comments (16)

anacrolix avatar anacrolix commented on May 18, 2024

It supports changing priorities, the necessary methods just aren't exposed. This can be added trivially with the current master branch. Your other 2 methods can also be added.

The noprio branch is an experiment that removes the internal priorities that aren't currently exposed, and replaces them with priorities based on the offsets of Torrent Readers, so as to allow more responsive seeking on an incomplete torrent.

from torrent.

anacrolix avatar anacrolix commented on May 18, 2024

I see your downstream issue will require a Torrent.SkipRegion/File.NoDownload method either way. Both master and noprio can support this.

from torrent.

jpillora avatar jpillora commented on May 18, 2024

Okay awesome
On Wed, 23 Dec 2015 at 3:10 AM Matt Joiner [email protected] wrote:

I see your downstream issue will require a
Torrent.SkipRegion/File.NoDownload method either way. Both master and
noprio can support this.


Reply to this email directly or view it on GitHub
#48 (comment).

from torrent.

anacrolix avatar anacrolix commented on May 18, 2024

Send PR or I'll address this myself in the next few days.

from torrent.

jpillora avatar jpillora commented on May 18, 2024

Cool, I'll leave this with you. I was just having a look through the noprio branch and I couldn't see an easy way to add it.

from torrent.

jpillora avatar jpillora commented on May 18, 2024

Question relating to this issue, if I created a reader for a torrent, begin reading a particular file and close the reader midway through. Does that region get de-prioritised?

I can see that the reader is nil'd though I wasn't sure the regions are re-prioritised somehow.

I'm just wondering if there's another way to lower priorities.

from torrent.

anacrolix avatar anacrolix commented on May 18, 2024

It does not get de-prioritized. This is one of the reasons for the noprio branch, which will support that. There's no public way to deprioritize currently, it's still a work in progress.

from torrent.

anacrolix avatar anacrolix commented on May 18, 2024

I'm about to merge what should allow for this. If you'd like to do some testing with the priority changes, I'll proceed with implementing the ability to File.Cancel().

from torrent.

jpillora avatar jpillora commented on May 18, 2024

Awesome! Will probably have some time tomorrow to test

On Thu, Jan 28, 2016 at 8:14 PM Matt Joiner [email protected]
wrote:

I'm about to merge what should allow for this. If you'd like to do some
testing with the priority changes, I'll proceed with implementing the
ability to File.Cancel().


Reply to this email directly or view it on GitHub
#48 (comment).

from torrent.

jpillora avatar jpillora commented on May 18, 2024

So skipping regions is now supported via torrent.Reader.Close() ? Or will it be supported when File.Cancel() lands?

from torrent.

anacrolix avatar anacrolix commented on May 18, 2024

Ah, Cancel needs to land.

from torrent.

jpillora avatar jpillora commented on May 18, 2024

Cool, will be watching 👀

from torrent.

anacrolix avatar anacrolix commented on May 18, 2024

I've Added File.Cancel(), and Torrent.CancelPieces().

from torrent.

jpillora avatar jpillora commented on May 18, 2024

Awesome, will give it a test this weekend 👍
On Fri, 5 Feb 2016 at 1:22 AM Matt Joiner [email protected] wrote:

I've Added File.Cancel(), and Torrent.CancelPieces().


Reply to this email directly or view it on GitHub
#48 (comment).

from torrent.

jpillora avatar jpillora commented on May 18, 2024

No one else has commented here so I'll assume its all good! Will reopen if I find anything

from torrent.

anacrolix avatar anacrolix commented on May 18, 2024

I added a simple test, seems legit.

from torrent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.