Ticket #18 (closed enhancement: fixed)

Opened 1 year ago

Last modified 7 months ago

improve Node task processing

Reported by: jordi Owned by: nobody
Priority: major Milestone: 3.1
Component: planetsim Version: PlanetSim 3
Keywords: Node task Cc:

Description (last modified by jordi) (diff)

Study and design a new approach to process the Node tasks (planet.generic.commonapi.NodeImpl.processTasks()).

Report from Max:

By the way I think the timer implemtation needs some revison, because it slows down the simulation enormously, I did a simple process(int currentStep ){ ...

if((currentStep-nodeJoinedInStep)%timerTaskPeriod){

timerTask.execute();

}

... } and it runs about three times faster

Report of Jordi: If this is true, I completely agree with you. But your solution seems a little ad-hoc for a specific task. I suppose that this would appear in the planet.generic.commonapi.NodeImpl.process(int), replacing the line "processTasks()". In this way, it is necessary to maintain generic approach, enabling different number of tasks a Node could have. Anyway, I agree with you to improve the current approach of processing all the Node tasks.

Change History

Changed 1 year ago by jordi

  • description modified (diff)

Changed 7 months ago by jordi

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.