use stacks in chargers-by-type
Closed this issue · 1 comments
colinsheppard commented
available-chargers is called a lot and could be improved by using a stack instead of a list in chargers-by-type. this will require adding a new variable "available-chargers-by-type" which will be a list of stacks.
it is unclear if this change will reduce overall computation time because extra effort will be needed to push/pop chargers from the list of available, so this should be done in a branch and compared.
Also, an extension will need to be written to extend java stacks to netlogo.
colinsheppard commented
The extension is written and ready to roll: