Remove package:typed_data from package:flutter dependencies#99604
Remove package:typed_data from package:flutter dependencies#99604fluttergithubbot merged 4 commits intoflutter:masterfrom
Conversation
| _isDone = false, | ||
| _eightBytes = ByteData(8) { | ||
| _eightBytesAsList = _eightBytes.buffer.asUint8List(); | ||
| factory WriteBuffer() { |
There was a problem hiding this comment.
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.
Need to run update-packages, delaying until approved due to churn
dnfield
left a comment
There was a problem hiding this comment.
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 |
| url_launcher_linux | ||
| ) | ||
|
|
||
| list(APPEND FLUTTER_FFI_PLUGIN_LIST |
There was a problem hiding this comment.
Is the change to this file related to this PR?
There was a problem hiding this comment.
This probably comes from running pub get aftr the FFI plugin change.
There was a problem hiding this comment.
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