Re: Actors performance, was: mem leak
2009-04-01 08:52:13 GMT
Hi Alex,
That's a good point.
The only issue is that we'd have to make sure that it is still possible
to override the def `scheduler` in the `Actor` trait. Also, we probably
have to change the `SchedulerAdapter` trait, so that it wraps
`Runnable`s into `FJTask`s.
I didn't have time to look into it in detail, yet. But, if we can make
sure that your suggested changes integrate well with all the rest of the
scheduler framework, I'd be very happy to integrate your patch.
Thanks,
Philipp
Alex Yakovlev wrote:
> Hi Philipp,
>
> performance-wise, have you considered inheriting Reaction from FJTask
> instead of wrapping it? I mean:
>
> class Reaction extends FJTask {
> ...
> }
>
> and in Scheduler.scala:
>
> def execute(task: Runnable) {
> currentThread match {
(Continue reading)
RSS Feed