Skip to content
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

Consider switching dependency from MPL to MP11 #225

Open
pwiecz opened this issue Jan 15, 2024 · 2 comments
Open

Consider switching dependency from MPL to MP11 #225

pwiecz opened this issue Jan 15, 2024 · 2 comments

Comments

@pwiecz
Copy link

pwiecz commented Jan 15, 2024

Hi,
I'm suffering slow build times of my c++ application.
Profiling compilation times shows that significant percentage of time is spent processing MPL headers.
I wonder if the Boost::Log team considered switching from MPL to MP11 and if, in your experience, it could bring significant compilation time improvements?

@Lastique
Copy link
Member

I didn't perform any compilation time comparisons between Boost.MPL and Boost.MP11, but I've seen reports that the latter performs better. I didn't see any numbers, though.

I did think about switching to Boost.MP11, but this would be an API breaking change, as Boost.Log supports user-specified MPL sequences in a few places. I'm not sure if this can be supported in a backwards-compatible way without the dependency on MPL, but it certainly makes the switch not so simple.

@Lastique
Copy link
Member

I should also note that Boost.Log filter and formatting expressions are based on Boost.Phoenix, which relies on Boost.Fusion, which, in turn, uses Boost.MPL for metaprogramming. So even if Boost.Log itself makes the switch, I don't think this will remove the dependency on Boost.MPL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants