Skip to content

gcc -> clang#17

Draft
Xarlotee wants to merge 1 commit into
HumbleUI:m119from
Xarlotee:m119
Draft

gcc -> clang#17
Xarlotee wants to merge 1 commit into
HumbleUI:m119from
Xarlotee:m119

Conversation

@Xarlotee

@Xarlotee Xarlotee commented Jun 2, 2026

Copy link
Copy Markdown

No description provided.

@tonsky

tonsky commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Why?

@Xarlotee Xarlotee marked this pull request as draft June 2, 2026 13:47
@Xarlotee

Xarlotee commented Jun 2, 2026

Copy link
Copy Markdown
Author

Hi
Sorry, my bad. I forgot to set the status to Draft.

In short, Skia recommends building with Clang rather than GCC.

We are currently working on a compatibility layer between Skija and SkiaSharp and have observed significant performance regressions in a number of operations, ranging from tens to hundreds of times slower. Profiling revealed that several critical code paths are not being vectorized. The root cause appears to be the use of GCC instead of Clang.

https://skia.org/docs/user/build/#highly-recommended-build-with-clang-cl

We are currently working on a merge request for the Skija repository. Once we have the final results, we plan to submit pull requests along with a detailed description of the findings and the observed performance improvements.

@tonsky

tonsky commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Okay I don’t mind moving to clang, especially if Skia itself recommends it. But would be nice to move all platforms to it if possible. With Linux, basically, we tried to use as old linux distribution as possible so that it runs on older installations IIRC. That was the motivation for GCC-9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants