MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Call to EnsureCoreWebView2Async very slow (~9 seconds)
@LiangTheDev is already working on this.
Since Jan 20, 2023.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
I included WebView2 in a rather complex WPF application and noticed that the call to EnsureCoreWebView2Async is very slow and takes about 9 seconds. I then put the same code into a simple new WPF application that only displays the WebView2 control and the call to EnsureCoreWebView2Async now only takes 350ms.
How is this possible? Are there ways find out what takes so long in EnsureCoreWebView2Async in this special case? How can the performance be improved?
SDK: 1.0.1462.37
Framework: .NET Framework 4.8
OS: Windows 10
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.