Skip to content

os.track.getTimeIndex will get the closest index to a specified timestamp using binary search, so it may be more performant to: #10

@Alaa-963

Description

@Alaa-963

os.track.getTimeIndex will get the closest index to a specified timestamp using binary search, so it may be more performant to:

  • Get the closest index to the age-off timestamp.
  • Splice the flat coordinates array from the index to the end.
  • Do the same for metadata.

This would avoid the getCoordinates call which reconstitutes the flat coordinates (unnecessary GC of all those arrays), and reversing/iterating over the entire array.

Originally posted by @schmidtk in ngageoint/opensphere#1243 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions