ngageoint/opensphere-asm

Optimize coordinate wrappers

Closed this issue ยท 1 comments

postfix.js has a number of wrappers to avoid errors converting coordinate arrays to structs. When the source array length is longer than expected, we slice the array to avoid an error. This approach creates unnecessary GC overhead and in quick testing incurred a ~10-15% performance penalty over a wrapper that passes the lon/lat values directly to the function (with a double lon, double lat function signature). We should investigate how these calls can be better optimized.

๐ŸŽ‰ This issue has been resolved in version 1.2.1 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€