sisl / AutomotiveDrivingModels.jl

Driving simulation architecture for Julia
Other
63 stars 29 forks source link

Data structure for scene representation #45

Open MaximeBouton opened 4 years ago

MaximeBouton commented 4 years ago

What is the real benefit of using EntityFrame to represent a scene? It seems like the only benefit is pre-allocation.

Alternative data structures:

Why would we change?

My personal opinion is that using AbstractArray as a default is the easiest solution.

Ideally we want the flexibility to use either representation. Dictionary optimizes for accessing vehicle by id, one might want more complex data structures to e.g. find neighbors easily.