-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Remove package:typed_data from package:flutter dependencies #99604
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
Remove package:typed_data from package:flutter dependencies #99604
Conversation
| _isDone = false, | ||
| _eightBytes = ByteData(8) { | ||
| _eightBytesAsList = _eightBytes.buffer.asUint8List(); | ||
| factory WriteBuffer() { |
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.
Allows avoiding a late for _eightBytesAsList
| collection: 1.15.0 | ||
| material_color_utilities: 0.1.4 | ||
| meta: 1.7.0 | ||
| typed_data: 1.3.0 |
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.
Need to run update-packages, delaying until approved due to churn
dnfield
left a comment
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 as long as update packages is happy
I wonder how much we're saving by avoiding the late field vs the list.
|
Do we have some list of forbidden packages too? If so we should add this one. |
|
Probably not much but IMO late is best avoided if its easy to |
|
Late requires extra runtime checks on every access |
|
Yup, and I'm sure it makes some difference. Though I prefer to avoid it not for performance reasons but because it more or less disables the static analysis you get for correct initialization. |
|
Turns out package:typed_data is still used elsewhere. Will follow up to see if it is easy to remove |
|
Requires a g3fix to update BUILD file |
|
This pull request is not suitable for automatic merging in its current state.
|
|
Looks like flutter_goldens_client uses package:crypto for md5 encoding which pulls in package:typed_data |
goderbauer
left a comment
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
| url_launcher_linux | ||
| ) | ||
|
|
||
| list(APPEND FLUTTER_FFI_PLUGIN_LIST |
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.
Is the change to this file related to this PR?
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.
This probably comes from running pub get aftr the FFI plugin change.
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.
This gets auto updated whenever I run it, and it looks like its not gitignored....
Should be safe to check in :D
Replace the usaged of the Uint8Buffer from package:typed_data with a List. This actually improves performance on wembly, using the following benchmark:
ToT:
With Change