Repository: flutter
Issue: Safari high memory usage
Labels: c: performance,platform-web,perf: memory,has reproducible steps,browser: safari-macos,P2,found in release: 2.5,found in release: 2.6,team-web,triaged-web

## Details

<!--
1.  Please tell us exactly how to reproduce the problem you are running into, and how you measured the performance.

2.  Please attach a small application (ideally just one main.dart file) that
     reproduces the problem. You could use https://gist.github.com/ for this.

3.  Switch flutter to master channel and run this app on a physical device
     using profile or release mode. Verify that the performance issue can be
     reproduced there.

     The bleeding edge master channel is encouraged here because Flutter is
     constantly fixing bugs and improving its performance. Your problem in an
     older Flutter version may have already been solved in the master channel.
-->

<!--
     Please tell us which target platform(s) the problem occurs (Android / iOS / Web / macOS / Linux / Windows)
     Which target OS version, for Web, browser, is the test system running?
     Does the problem occur on an emulator/simulator as well as on physical devices?
-->

**Target Platform:** Web 
**Target OS version/browser:** macOS Big Sur 11.5.2 (20G95) - Safari 14.1.2 (16611.3.10.1.6)
**Devices:** Mac

Unless I'm looking at the wrong place, it looks like Safari is using a lot of memory for my Flutter app.
In comparison with Chrome, this is not the case.

Left Safari, right Chrome.

![Screenshot 2021-11-10 at 16 56 34](https://user-images.githubusercontent.com/3032294/141147239-ac67bf5b-8bac-4bb9-8d21-f45f7d4e950c.png)

If I should be measuring the memory differently, please let me know (I'm not a web developer).
Both are by loading the main page, exact same state.


We are building with
`flutter build web --dart-define=SENTRY_RELEASE=$SENTRY_RELEASE -t lib/$FLAVOR_ENTRYPOINT --release --source-maps --web-renderer canvaskit`

## Logs

<details>
<summary>Logs</summary>

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
   info • The declaration '_createRide' isn't referenced • lib/screens/drivers/detail/drivers_detail_screen.dart:82:8 • unused_element
   info • The declaration '_formatBillingAddress' isn't referenced • lib/screens/drivers/detail/tabs/general/driver_details_general_info_tab.dart:270:10 • unused_element
   info • Don't import implementation files from another package • lib/screens/signin_signup/views/mobile/signin_link_not_verified_sent_mobile_view.dart:3:8 • implementation_imports
   info • Don't import implementation files from another package • lib/screens/signin_signup/views/mobile/signin_link_sent_mobile_view.dart:3:8 • implementation_imports
   info • Don't import implementation files from another package • lib/screens/signin_signup/views/mobile/signin_magic_link_sent_mobile_view.dart:3:8 • implementation_imports
   info • Don't import implementation files from another package • lib/screens/signin_signup/views/mobile/signin_register_existing_user_linked_mobile_view.dart:3:8 • implementation_imports
   info • 'vsync' is deprecated and shouldn't be used. This field is now ignored. This feature was deprecated after v2.2.0-10.1.pre. • lib/screens/signin_signup/views/mobile/signin_signup_mobile_view.dart:56:31 •
          deprecated_member_use
   info • 'vsync' is deprecated and shouldn't be used. This field is now ignored. This feature was deprecated after v2.2.0-10.1.pre. • lib/screens/signin_signup/views/tablet/signin_signup_tablet_view.dart:76:37 •
          deprecated_member_use

8 issues found. (ran in 11.7s)

```

<!-- Finally, paste the output of running `flutter doctor -v` here, with your device plugged in. -->

```
[✓] Flutter (Channel stable, 2.5.3, on macOS 11.5.2 20G95 darwin-x64, locale en-GB)
    • Flutter version 2.5.3 at /Users/glennruysschaert/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (4 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/glennruysschaert/Library/Android/sdk
    • Platform android-31, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 13.1, Build version 13A1030d
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.28.0

[✓] Connected device (3 available)
    • Glenn’s iPad (mobile) • 00008101-000D4D112139003A • ios            • iOS 15.0.2 19A404
    • macOS (desktop)       • macos                     • darwin-x64     • macOS 11.5.2 20G95 darwin-x64
    • Chrome (web)          • chrome                    • web-javascript • Google Chrome 95.0.4638.69

• No issues found!

```

</details>