Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Alaa-963 opened this issue Apr 1, 2022 · 0 comments

Comments

@Alaa-963
Copy link

Alaa-963 commented Apr 1, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants