GithubHelp home page GithubHelp logo

Comments (5)

stephanenicolas avatar stephanenicolas commented on July 24, 2024

Do you have any concrete example ?

from robospice.

chrisjenx avatar chrisjenx commented on July 24, 2024

Well I am using a shared executor pool between a few things.

So I have ~4 Threads, There are a few different ideas around execution policys that would be handy for a few cases.

The one I'm looking at is loading images in a list, generally you want to keep 1 thread free out of the ~4 to make sure that you can pull from the disk while the others are waiting for a http response. So the request processor would not execute until it had > 1 threads free.

from robospice.

stephanenicolas avatar stephanenicolas commented on July 24, 2024

Ok, so what exactly would you like to change in RS to do that more easily ?

S.

2013/3/2 Christopher Jenkins [email protected]

Well I am using a shared executor pool between a few things.

So I have ~4 Threads, There are a few different ideas around execution
policys that would be handy for a few cases.

The one I'm looking at is loading images in a list, generally you want to
keep 1 thread free out of the ~4 to make sure that you can pull from the
disk while the others are waiting for a http response. So the request
processor would not execute until it had > 1 threads free.


Reply to this email directly or view it on GitHubhttps://github.com//issues/54#issuecomment-14327276
.

Stéphane NICOLAS,
OCTO Technology
Développeur & Consultant Android / Java
..........................................................
50, Avenue des Champs-Elysées
75008 Paris
+33 (0)6.26.32.34.09
www.octo.com - blog.octo.com
www.usievents.com
...........................................................

from robospice.

rciovati avatar rciovati commented on July 24, 2024

@chrisjenx Maybe it's not enough to achieve what you need but please note that you can already customize the ExecutorService that the RequestProcessor will use, overriding the getExecutorService() method inside the SpiceService class.

from robospice.

stephanenicolas avatar stephanenicolas commented on July 24, 2024

Closed in 23aee7a.
Thanks for this feature.

from robospice.

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.