Higher RAM usage in NETCore
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 10.3k
- フォーク
- 2.9k
- 平均マージ
- 5日 22時間
- マージ済み PR(30日)
- 4
説明
Is there an existing issue for this?
- I have searched both open/closed issues, no issue already exists.
CefSharp Version
120.2.50
Operating System
Windows 11
Architecture
x86
.Net Version
.NET 6.0
Implementation
WinForms
Reproduction Steps
Create minimal application that uses CefSharp and build it both for .NET Framework and .NET Core.
Expected behavior
Both versions should take a similar amount of RAM.
Actual behavior
There's a 20-30% difference between the two versions' working set.
See this table (taken from Process Explorer):
.NET 6:
| Process name | Private Bytes | Working Set |
|---|---|---|
| Chromium.exe | 37,292 K | 99,908 K |
| CefSharp.BrowserSubprocess.exe | 101,244 K | 85,808 K |
| CefSharp.BrowserSubprocess.exe | 21,888 K | 34,820 K |
| CefSharp.BrowserSubprocess.exe | 23,264 K | 42,092 K |
| CefSharp.BrowserSubprocess.exe | 25,764 K | 43,848 K |
| CefSharp.BrowserSubprocess.exe | 28,040 K | 58,440 K |
.NET 4.7.2:
| Process name | Private Bytes | Working Set |
|---|---|---|
| Chromium.exe | 35,532 K | 80,800 K |
| CefSharp.BrowserSubprocess.exe | 103,972 K | 75,220 K |
| CefSharp.BrowserSubprocess.exe | 21,380 K | 32,504 K |
| CefSharp.BrowserSubprocess.exe | 20,404 K | 25,964 K |
| CefSharp.BrowserSubprocess.exe | 24,264 K | 34,704 K |
| CefSharp.BrowserSubprocess.exe | 26,220 K | 48,696 K |
This increases even further when I actually start browsing in either program.
Regression?
No response
Known Workarounds
No response
Does this problem also occur in the CEF Sample Application
Not Tested
Other information
No response
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、Windows 11 x86 上で .NET 6.0 および .NET Framework 4.7.2 を使用して、報告された最小構成の CefSharp WinForms アプリケーションを再現します。Process Explorer を使用して、閲覧前および閲覧中の Chromium.exe と CefSharp.BrowserSubprocess.exe の private bytes と working sets を比較します。20~30% の差の原因を特定し、各 runtime のメモリ使用量を同程度にするか、確認済みの runtime の制限事項を文書化できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp
- 領域
- desktop, performance
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100