New user self-registration is disabled due to spam. Please email eigen-core-team @ if you need an account.
Before reporting a bug, please make sure that your Eigen version is up-to-date!
Bug 1725 - Slow MSVC compile times
Summary: Slow MSVC compile times
Status: NEW
Alias: None
Product: Eigen
Classification: Unclassified
Component: General (show other bugs)
Version: 3.3 (current stable)
Hardware: All Windows
: Normal Unknown
Assignee: Nobody
Depends on:
Reported: 2019-06-17 15:52 UTC by Björn Piltz
Modified: 2019-06-18 08:25 UTC (History)
4 users (show)


Description Björn Piltz 2019-06-17 15:52:55 UTC
It seems MSVC has a problem with Eigen's massive use of inlining. Some tests which take minutes to compile with GCC/clang take up to an hour to compile with MSVC 2017 as reported here:

The timings for MSVC 2019 are better, but not great.

I have set up some test scripts here:

To recreate the tables, compile Eigen3.sln in release mode from within Visual Studio and process the build log with eigen_compilation_time_msvc.Rmd.

I would suggest creating a minimal example, which can be reported to Microsoft as this is obviously an issue on their side.
Comment 1 Björn Piltz 2019-06-17 15:55:04 UTC
The link to the mailing list should be

Note You need to log in before you can comment on or make changes to this bug.