Why is Clang so much slower compiling than MSVC? (2024)

Am I mad? Or anyone also noticed it?

I wrote a build.bat for Clang and MSVC, both with 3 different build settings: Slow, Fast and Release.

MSVC compiles both of them faster than Clang takes to compile just one.

What can be happening?

BTW, I'm using the lld-link with Clang. Also, I'm using /MP (Multiprocessor compilation) with MSVC, but I doesn't really matter since I don't have that many files to compile.

Why is Clang so much slower compiling than MSVC? (2024)
Top Articles
Latest Posts
Article information

Author: Kareem Mueller DO

Last Updated:

Views: 5912

Rating: 4.6 / 5 (46 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Kareem Mueller DO

Birthday: 1997-01-04

Address: Apt. 156 12935 Runolfsdottir Mission, Greenfort, MN 74384-6749

Phone: +16704982844747

Job: Corporate Administration Planner

Hobby: Mountain biking, Jewelry making, Stone skipping, Lacemaking, Knife making, Scrapbooking, Letterboxing

Introduction: My name is Kareem Mueller DO, I am a vivacious, super, thoughtful, excited, handsome, beautiful, combative person who loves writing and wants to share my knowledge and understanding with you.