Closed Tortar closed 1 year ago
I am not sure if such an optimization makes sense, in the sense that it can be trivially be done across all frameworks and it would have the same impact; here we used Int8 only in Agents.jl. If there is a reason to specify the type of the container we might as well declare it in the decleration file
I don't think it is true, NetLogo can't specify the type of integers so I think such an optimizations is not possible, Mason and Mesa can't do it too with the current implementation which means that it is not a trivial change in these two frameworks, yet it is true that a better implementation could do it, but it is not trivial to change the model, and at least in Mason I expect that the new implementation would make the model more complex
So I would instead declare that as you suggested
it is so crazy sad that such a trivial, simple change as changing the element type of a container is difficult in other frameworks.
61