Repository navigation
Speed up SkyCoord initialization by a factor of ~2 - #7615
Conversation
… improve SkyCoord initialization performance
|
Hi there @astrofrog 👋 - thanks for the pull request! I'm just a friendly 🤖 that checks for issues related to the changelog and making sure that this pull request is milestoned and labeled correctly. This is mainly intended for the maintainers, so if you are not a maintainer you can ignore this, and a maintainer will let you know if any action is required on your part 😃. Everything looks good from my point of view! 👍 If there are any issues with this message, please report them here. |
|
Ideally, the whole initializer is rewritten, but pending that I think being "lazy" is a good idea! |
|
@mhvk - yeah, this is one of these cases where I'd rather just make such a simple fix in case the refactoring never happens :) |
|
I'm loving the simplicity/laziness! LGTM, so I'm merging. |
This implements the caching of
representation_infoon frames on an instance level to speed up initialization of SkyCoords (as described in #2989)See #7614 for trying to cache on a class level (which doesn't work but would be ideal)
Before
After
Also, do I win some kind of prize for being lazy and doing a pull request where all I do is write 'lazy'? ;)