Repository: flutter
Issue: Counter sample app uses high memory on Windows in release mode
Labels: platform-windows,a: desktop,perf: memory,has reproducible steps,P2,found in release: 3.22,team-windows,triaged-windows

### Steps to reproduce

I checked this following up on a stack overflow question on how much memory a Flutter App uses and was surprised too that it take sso much. The App+the runtime dll is about 18MBs but the running app uses 18-33MB. Which seems quite a lot for such a simple app.

![grafik](https://github.com/flutter/flutter/assets/16635729/b0c61e0f-1876-4162-ab4d-746c77f20b52)


### Code sample

<details open><summary>Code sample</summary>

```dart
[Paste your code here]
```

</details>


### What target platforms are you seeing this bug on?

Windows

### OS/Browser name and version | Device information

windows 10 on AMD 64 Bit

### Does the problem occur on emulator/simulator as well as on physical devices?

No

### Logs

_No response_

### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[√] Flutter (Channel stable, 3.13.2, on Microsoft Windows [Version 10.0.19045.4412], locale de-DE)
    • Flutter version 3.13.2 on channel stable at C:\Entwicklung\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ff5b5b5fa6 (9 months ago), 2023-08-24 08:12:28 -0500
    • Engine revision b20183e040
    • Dart version 3.1.0
    • DevTools version 2.25.0

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\escam\AppData\Local\Android\sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.3)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.7.34024.191
    • Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2022.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • 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 17.0.6+0-b2043.56-10027231)

[√] VS Code (version 1.89.1)
    • VS Code at C:\Users\escam\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.88.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19045.4412]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 124.0.6367.207
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 120.0.2210.133

[√] Network resources
    • All expected network resources are available.
</details>