You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following experimentation with some large scale AIS datasets and it has been observed that continuously reading the Track metadata becomes a costly operation, especially as the state history of a Track grows. This due to the fact that the getter method has to iterate over all the states to yield the result as it can be seen here.
A potential fix can be applied by replacing the above lines as follows:
However, by doing so, only the metadata fields of the latest detection are returned, which may not be desireable (e.g. in cases where the metadata fields vary between detections).
Seeing as metadata is becoming quite heavily used in StoneSoup, it may be worth having a different approach to storing/updating the Track metadata.
The text was updated successfully, but these errors were encountered:
Following experimentation with some large scale AIS datasets and it has been observed that continuously reading the Track metadata becomes a costly operation, especially as the state history of a Track grows. This due to the fact that the getter method has to iterate over all the states to yield the result as it can be seen here.
A potential fix can be applied by replacing the above lines as follows:
Here is an example profiler output running the same code with the old and new versions:
Old
New
However, by doing so, only the metadata fields of the latest detection are returned, which may not be desireable (e.g. in cases where the metadata fields vary between detections).
Seeing as metadata is becoming quite heavily used in StoneSoup, it may be worth having a different approach to storing/updating the Track metadata.
The text was updated successfully, but these errors were encountered: