-
-
Notifications
You must be signed in to change notification settings - Fork 860
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
perf: avoid caching a single multiplication #1743
perf: avoid caching a single multiplication #1743
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some files import '_64', some don't? Is that intentional?
As far as I can see we had Long terms I think it should be used from a future latlong package but not the current implementation of |
I would agree with @josxha here - adding a dependency just for this seems a little bit too much. |
vector_math is a core flutter dependency, and we already use it in camera.dart for the matrix transform at line 301, we just don't explicitly depend on it. Matrix4 is exposed by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I suppose that we indirectly depend on it anyway, so no harm in depending on it directly as well.
Would be great if you could resolve the conflicts as well :D.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the explanation. pr lgtm
np! also, we could consider using the aabb2 and other methods from vector_math in the future for things like bounding boxes and transforms! |
(@josxha feel free to cherry pick) |
Yep, that would make sense. |
commit ec81782 Author: Luka S <[email protected]> Date: Sat Dec 2 20:48:08 2023 +0000 chore: v6.1.0 release preparation (#1749) commit df40d8c Author: mootw <[email protected]> Date: Sat Dec 2 10:49:29 2023 -0600 perf: avoid caching a single multiplication (#1743) commit ad8318b Author: Joscha <[email protected]> Date: Sat Dec 2 16:39:21 2023 +0100 refactor: example app plugins (#1744) commit c0829b4 Author: Joscha <[email protected]> Date: Sat Dec 2 16:31:38 2023 +0100 fix: `MapPosition.hashCode` value distribution (#1747) commit 51d3eda Author: Luka S <[email protected]> Date: Sat Dec 2 11:34:13 2023 +0000 revert: #1731 (#1745) Revert #1731
avoids caching a single multiplication operation. converts all toRadians and other helpers to use vector_math constant. (part of reducing dependency on latlong2).