Re: Compilation is taking a ton of memory

2018-07-05 Thread H. S. Teoh via Digitalmars-d
On Wed, Jul 04, 2018 at 04:17:22PM -0400, Nick Sabalausky (Abscissa) via Digitalmars-d wrote: [...] > Long compilation times are almost always the fault of Dub. Dub is > pretty well-known for taking DMD's near-instant compile times and > bloating them out to the ridiculous (by D standards)

Re: Compilation is taking a ton of memory

2018-07-04 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
On 06/27/2018 12:00 PM, Mario Silva wrote: Hello, Our code base has been growing steadily and it's currently at a point where my 16GB machine just freezes when we're compiling our code. This happens because DMD just consumes all my memory for a while. Also, it's taking a long time to

Re: Compilation is taking a ton of memory

2018-07-04 Thread Jacob Carlborg via Digitalmars-d
On 2018-06-27 18:00, Mario Silva wrote: Hello, Our code base has been growing steadily and it's currently at a point where my 16GB machine just freezes when we're compiling our code. This happens because DMD just consumes all my memory for a while. Also, it's taking a long time to compile

Re: Compilation is taking a ton of memory

2018-07-01 Thread Nick Treleaven via Digitalmars-d
On Wednesday, 27 June 2018 at 16:00:37 UTC, Mario Silva wrote: Less than an year ago our project was taking around 17 seconds to compile - no libs requiring compilation - and maybe around 50 seconds for full compilation, and it now takes around 50 seconds for an incremental compilations and

Re: Compilation is taking a ton of memory

2018-07-01 Thread Shachar Shemesh via Digitalmars-d
On 28/06/18 01:46, Steven Schveighoffer wrote: This has been a thorn in many sides for a long time. I remember Weka.io's Liran talking about how they required an INSANE amount of time/memory to build their system in dconf 2015 maybe? But things have gotten a bit better since then. I think at

Re: Compilation is taking a ton of memory

2018-06-28 Thread sarn via Digitalmars-d
On Thursday, 28 June 2018 at 16:24:07 UTC, H. S. Teoh wrote: I continue to use SCons for my D projects. For dub dependencies, I just create a fake empty dub project with declared dependencies and run that separately for refreshing dependencies, but the actual compiling and linking is handled

Re: Compilation is taking a ton of memory

2018-06-28 Thread crimaniak via Digitalmars-d
On Thursday, 28 June 2018 at 16:24:07 UTC, H. S. Teoh wrote: On Thu, Jun 28, 2018 at 04:11:57PM +, crimaniak via Digitalmars-d wrote: [...] The problem is aggravated by the fact that DUB compiles all the sources in one DMD launch. Doesn't dub have an option to compile packages (i.e.

Re: Compilation is taking a ton of memory

2018-06-28 Thread H. S. Teoh via Digitalmars-d
On Thu, Jun 28, 2018 at 06:13:45PM +, Eugene Wissner via Digitalmars-d wrote: > On Thursday, 28 June 2018 at 16:24:07 UTC, H. S. Teoh wrote: > > On Thu, Jun 28, 2018 at 04:11:57PM +, crimaniak via Digitalmars-d > > wrote: [...] > > > The problem is aggravated by the fact that DUB compiles

Re: Compilation is taking a ton of memory

2018-06-28 Thread Eugene Wissner via Digitalmars-d
On Thursday, 28 June 2018 at 16:24:07 UTC, H. S. Teoh wrote: On Thu, Jun 28, 2018 at 04:11:57PM +, crimaniak via Digitalmars-d wrote: [...] The problem is aggravated by the fact that DUB compiles all the sources in one DMD launch. Doesn't dub have an option to compile packages (i.e.

Re: Compilation is taking a ton of memory

2018-06-28 Thread H. S. Teoh via Digitalmars-d
On Thu, Jun 28, 2018 at 04:11:57PM +, crimaniak via Digitalmars-d wrote: [...] > The problem is aggravated by the fact that DUB compiles all the > sources in one DMD launch. Doesn't dub have an option to compile packages (i.e. subdirs) separately? Or does that only apply to dub packages, not

Re: Compilation is taking a ton of memory

2018-06-28 Thread crimaniak via Digitalmars-d
On Wednesday, 27 June 2018 at 16:00:37 UTC, Mario Silva wrote: Hello, Our code base has been growing steadily and it's currently at a point where my 16GB machine just freezes when we're compiling our code. This happens because DMD just consumes all my memory for a while. Also, it's taking

Re: Compilation is taking a ton of memory

2018-06-27 Thread sarn via Digitalmars-d
On Wednesday, 27 June 2018 at 16:00:37 UTC, Mario Silva wrote: Any tips on how to code in a way that minimizes both compilation times and memory consumption when compiling? Here are my tips. I'd love to hear more from others. * Try to reduce imports. E.g., say you use a lot of stuff from

Re: Compilation is taking a ton of memory

2018-06-27 Thread Steven Schveighoffer via Digitalmars-d
On 6/27/18 12:00 PM, Mario Silva wrote: Hello, Our code base has been growing steadily and it's currently at a point where my 16GB machine just freezes when we're compiling our code. This happens because DMD just consumes all my memory for a while. That is the path of D's compiler

Re: Compilation is taking a ton of memory

2018-06-27 Thread H. S. Teoh via Digitalmars-d
On Wed, Jun 27, 2018 at 04:00:37PM +, Mario Silva via Digitalmars-d wrote: > Hello, > > Our code base has been growing steadily and it's currently at a point > where my 16GB machine just freezes when we're compiling our code. This > happens because DMD just consumes all my memory for a while.

Compilation is taking a ton of memory

2018-06-27 Thread Mario Silva via Digitalmars-d
Hello, Our code base has been growing steadily and it's currently at a point where my 16GB machine just freezes when we're compiling our code. This happens because DMD just consumes all my memory for a while. Also, it's taking a long time to compile it. Less than an year ago our project