Comments (3)
Because other fairness strategies would have performance impacts. And in addition I am not sure what use cases we would be trying to solve with additional strategies, I am going to wait on implementing this enhancement.
If anyone would like to see this, please post a comment about what fairness strategy, and why you would like to see it. That way I can be sure to implement something that will be useful to lots of people.
Right now the fairness strategy of limiting the amount of runnables per key at a time (possibly in combination with a sub pool), should solve most peoples use cases.
from threadly.
I marked this for version 2.0.0 since to do this cleanly, we would have to make non-backwards compatible changes.
Depending on feedback, and how I feel about this as we get closer to 2.0.0 we may or may not want to include this additional functionality. But still marking for 2.0.0 milestone as that is the earliest we can do this (of course 2.0.0 can occur when ever want it to).
from threadly.
I am going to go ahead and close this as wont fix. This could still be done, I have a branch on from my local fork for 2.0.0, but worry this complicates things more than it is worth. As I stated above, if anyone is interested in something like this, let me know, we can re-open this. But I hate to add a builder pattern right now when the need is not clearly defined, and it adds complexity that is different from everything else in this project right now. If we have a need for more builders in the future, I will likely do this then as well.
from threadly.
Related Issues (20)
- Create compatability layer with CompletableFuture
- Figure out potential ways to optimize large mapped chains of ListenableFuture's HOT 1
- StackOverflowError's may result in SettableListenableFuture's not completing HOT 1
- StackOverflowError's may be swallowed in ExceptionUtils.handleException HOT 1
- Move to gitlab? HOT 1
- PriorityScheduler and preemption HOT 3
- Threadly 5.32: PriorityScheduler.workerIdle spin locking with high thread limit HOT 6
- Add `ThreadlyConfig`
- ListenableFutureTask needs to be re-implemented HOT 1
- Should `ListenableFuture` be renamed to `Promise` HOT 2
- PriorityScheduler: Add ability to resisting thread starts for starvable tasks
- Split org.threadly.test to a new artifact for 6.0 HOT 2
- Add way to get ListenableFuture error state without needing to throw or use a callback HOT 1
- Unfair threadexecutor is slower than executorservice (new FixedThreadPool) HOT 5
- Add ForkJoinPool idle worker stack to be identified by Profiler
- Profiler: An additional PriorityScheduler stack is not being identified as idle HOT 1
- JDK 17 HOT 7
- ListenableFuture listener may be executed on an unexpected thread under special ListenerOptimizationStrategy configurations HOT 1
- ListenableFuture chain method HOT 7
- Consultation regarding performance HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from threadly.