8000 Optimize FontSourceCollection creation from a filesystem directory, reduce allocs by h3xds1nz · Pull Request #9844 · dotnet/wpf · GitHub
[go: up one dir, main page]

Skip to content

Optimize FontSourceCollection creation from a filesystem directory, reduce allocs #9844

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
Stylize string as interpolated though it becomes a literal
  • Loading branch information
h3xds1nz committed Apr 9, 2025
commit 5087f410205aab357e9627589cd2d38812bb290b
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private void SetFontSources()
{
if (_tryGetCompositeFontsOnly)
{
string[] files = Directory.GetFiles(_uri.LocalPath, "*" + Util.CompositeFontExtension);
string[] files = Directory.GetFiles(_uri.LocalPath, $"*{Util.CompositeFontExtension}");
fontSources = new List<IFontSource>(files.Length);

foreach (string file in files)
Expand Down
0