Re: Horrible compiletimes and memory usage while compiling a parser with X3

Jens Kallup <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
Hi,

There a 3 problems that can be:

1 - to small memory (a developer PC should be 4 GB of RAM today)
2 - the fact is, that boost is very compilcated template system.
3 - You have a too small swap partition (Linux), and/or user file fs

You can test, if you increase the memory.
Or You can try to use pre-compiled-header-file(s), what can be use
by gnu g++ to generate (very big) header binary, which makes the
compile time a little bit charmed/faster.
BTW: PCH files can use for other Frameworks/Projects, too.

You can try/test to increase the number of open file id's.
Or increase the virtual template depth

Jens

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.