-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: add a note about patch performance
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,3 +87,22 @@ need to put `flutter build` arguments after a `--` separator. For example: | |
`shorebird patch android -- --dart-define="foo=bar"` will define the `"foo"` environment | ||
variable inside Dart as you might have done with `flutter build` directly. | ||
::: | ||
|
||
|
||
### Patch Performance | ||
|
||
Android: Patching an application on Android has no effect on performance. | ||
|
||
iOS: Patching an application on iOS normally does not affect an application | ||
performance. However the patching mechanism on iOS is different from Android. | ||
Unchanged code runs as normal (on the CPU), however changed (or added) code will | ||
run in a Dart interpreter (which is slower than the CPU) Normally this change | ||
is undetectable, but if you are changing particularly performance-sensitive code | ||
(e.g. code for processing images, or large data that is written in Dart) you may | ||
see a performance difference after patching. If you ever see unexpected | ||
performance changes when patching on iOS, please [contact | ||
us](mailto:[email protected]) we would love to work with you to understand | ||
and fix! | ||
|
||
You can always test your patches before sending them to users using by | ||
[staging patches](/staging-patches) |