boostorg / wave

Boost.org wave module
http://boost.org/libs/wave
21 stars 49 forks source link

Is there multithreaded compilation support? #139

Closed w4454962 closed 2 years ago

w4454962 commented 2 years ago

For example, it takes more than 1 minute to preprocess and compile a 10MB source file, which is really too slow

jefftrull commented 2 years ago

In my view performance has not been worked on very seriously in Wave - though @hkaiser will know better. "PRs welcome" as they say :)

I am curious about your phrasing, though - when you say "to preprocess and compile" what do you mean? Wave only does preprocessing.

jefftrull commented 2 years ago

You may be interested in the discussion on this old (pre-Github) ticket: https://svn.boost.org/trac10/ticket/1670

w4454962 commented 2 years ago

Sorry, my wording is a little unclear. It refers to the time when the preprocessing macro is expanded

hkaiser commented 2 years ago

You may be interested in the discussion on this old (pre-Github) ticket: https://svn.boost.org/trac10/ticket/1670

Thanks @jefftrull for digging this up. Indeed, setting BOOST_WAVE_SUPPORT_THREADING=0 should help a lot.

w4454962 commented 2 years ago

Thank you. The speed has been greatly improved after the modification.