Re: Horrible compiletimes and memory usage while compiling a parser with X3
Thomas Bernard <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
Le 26/10/2016 à 02:07, Exagon a écrit : > Quite a lot, using your idea, the compiletimes go down from 1h to 2-5 min. > Also the memory usage while compiling goes down to maybe 2gb, which is very > nice. > I had to play a little bit arround to make my parser and the parse function > work with skippers etc. but in the end this works and it performs realy > well. > I dont have any results how the parser which is generated using your > workarround performs vs the parser which compiles 1h, maybe i will do a > comparison when I have enough time to do this. > Also the resulting binary is now only 74mb big (without using the -s flag or > compiling with -Os) which is much better I think than the 1.6gb it had > before :) > The memory for compiling and the code size you obtain are pretty big and are not what I would expect for the small code you posted. We had this kind of problem before ... this kind of has a bad smell. There is probably a design issue hiding somewhere. I'll try to find some time to investigate a bit. Regards, Thomas Bernard ------------------------------------------------------------------------------ The Command Line: Reinvented for Modern Developers Did the resurgence of CLI tooling catch you by surprise? Reconnect with the command line and become more productive. Learn the new .NET and ASP.NET CLI. Get your free copy! http://sdm.link/telerik