Re: Speed up `dub`.

2016-06-06 Thread ciechowoj via Digitalmars-d-learn
On Sunday, 5 June 2016 at 21:20:20 UTC, Andrej Mitrovic wrote: On Thursday, 2 June 2016 at 13:04:00 UTC, ciechowoj wrote: and found that an assert from `std/path.d:3168` (`globMatch`) contributes a major amount to the running time of dub. ``` assert(balancedParens(pattern, '[', ']', 0));

Re: Speed up `dub`.

2016-06-05 Thread Andrej Mitrovic via Digitalmars-d-learn
On Thursday, 2 June 2016 at 13:04:00 UTC, ciechowoj wrote: and found that an assert from `std/path.d:3168` (`globMatch`) contributes a major amount to the running time of dub. ``` assert(balancedParens(pattern, '[', ']', 0)); assert(balancedParens(pattern, '{', '}', 0)); ``` Hmm..

Re: Speed up `dub`.

2016-06-05 Thread Jacob Carlborg via Digitalmars-d-learn
On 04/06/16 10:04, Russel Winder via Digitalmars-d-learn wrote: Dub must check all dependencies before starting a build, the question is whether is should download and build them or just fail. Yeah, I meant check online. -- /Jacob Carlborg

Re: Speed up `dub`.

2016-06-04 Thread Russel Winder via Digitalmars-d-learn
On Tue, 2016-05-24 at 09:00 +0200, Jacob Carlborg via Digitalmars-d- learn wrote: > […] > I think that by default Dub should not check dependencies. There > should  > be an explicit command to install the dependencies. Dub must check all dependencies before starting a build, the question is

Re: Speed up `dub`.

2016-06-02 Thread Jacob Carlborg via Digitalmars-d-learn
On 2016-06-02 15:07, ciechowoj wrote: Maybe it would be worth to write something about the issue here https://github.com/dlang/dub#installation . I'm curious how the pre-compiled versions are built. Yeah, I really hope they're built with optimizations enabled. -- /Jacob Carlborg

Re: Speed up `dub`.

2016-06-02 Thread Daniel Kozak via Digitalmars-d-learn
I am not sure but on Arch linux I always recompile dub myself because by default it is build without release flags too. Dne 2.6.2016 v 15:07 ciechowoj via Digitalmars-d-learn napsal(a): Maybe it would be worth to write something about the issue here https://github.com/dlang/dub#installation .

Re: Speed up `dub`.

2016-06-02 Thread ciechowoj via Digitalmars-d-learn
Maybe it would be worth to write something about the issue here https://github.com/dlang/dub#installation . I'm curious how the pre-compiled versions are built.

Re: Speed up `dub`.

2016-06-02 Thread ciechowoj via Digitalmars-d-learn
On Thursday, 2 June 2016 at 12:20:50 UTC, Jacob Carlborg wrote: On 2016-06-01 23:33, ciechowoj wrote: Hahahaa. Who could possibly think that `build.sh` builds dub in debug mode? With -release -O -inline -m64 it runs 5 times faster : P. It made my day... Haha really? Yes, I should have

Re: Speed up `dub`.

2016-06-02 Thread Jacob Carlborg via Digitalmars-d-learn
On 2016-06-01 23:33, ciechowoj wrote: Hahahaa. Who could possibly think that `build.sh` builds dub in debug mode? With -release -O -inline -m64 it runs 5 times faster : P. It made my day... Haha really? -- /Jacob Carlborg

Re: Speed up `dub`.

2016-06-01 Thread ciechowoj via Digitalmars-d-learn
Hahahaa. Who could possibly think that `build.sh` builds dub in debug mode? With -release -O -inline -m64 it runs 5 times faster : P. It made my day...

Re: Speed up `dub`.

2016-05-24 Thread Jacob Carlborg via Digitalmars-d-learn
On 2016-03-07 10:18, ciechowoj wrote: I'm using `dub` to build project. And every time I run `dub` it seems to check if dependencies are up to date, which takes some time. Is there a way to switch of that checking? Or any other way to speed up building process? It really slows down my

Re: Speed up `dub`.

2016-05-23 Thread cy via Digitalmars-d-learn
On Thursday, 19 May 2016 at 17:50:44 UTC, ciechowoj wrote: dub build --nodeps I tried it, doesn't seem to do anything, maybe something is broken. Perhaps you didn't complete "dub build" without --nodeps beforehand? You have to do that once, and it's still as annoyingly inefficient as

Re: Speed up `dub`.

2016-05-19 Thread ciechowoj via Digitalmars-d-learn
On Sunday, 15 May 2016 at 01:48:41 UTC, cy wrote: dub build --nodeps It's amazing. I tried it, doesn't seem to do anything, maybe something is broken.

Re: Speed up `dub`.

2016-05-19 Thread ciechowoj via Digitalmars-d-learn
On Sunday, 15 May 2016 at 06:49:00 UTC, Russel Winder wrote: I am not sure about DStep build, but for the two projects I have (using GtkD) build times using Dub were sufficiently long that I switched to SCons and it is OK and allows for a reasonable development rhythm. That SCons looks very

Re: Speed up `dub`.

2016-05-15 Thread Russel Winder via Digitalmars-d-learn
On Sat, 2016-05-14 at 16:36 +, ciechowoj via Digitalmars-d-learn wrote: > On Monday, 7 March 2016 at 21:56:11 UTC, Seb wrote: > > > > Use ld.gold - it will speed up your linking quite dramatically! > > > > https://code.dawg.eu/reducing-vibed-turnaround-time-part-1-faster-l > > inking.html >

Re: Speed up `dub`.

2016-05-14 Thread cy via Digitalmars-d-learn
On Monday, 7 March 2016 at 09:18:37 UTC, ciechowoj wrote: I'm using `dub` to build project. And every time I run `dub` it seems to check if dependencies are up to date, which takes some time. Is there a way to switch of that checking? Or any other way to speed up building process? It really

Re: Speed up `dub`.

2016-05-14 Thread ciechowoj via Digitalmars-d-learn
On Monday, 7 March 2016 at 21:56:11 UTC, Seb wrote: Use ld.gold - it will speed up your linking quite dramatically! https://code.dawg.eu/reducing-vibed-turnaround-time-part-1-faster-linking.html Thanks, it improves things a little. However I've just had idea that it should be possible to

Re: Speed up `dub`.

2016-03-08 Thread Luis via Digitalmars-d-learn
On Tuesday, 8 March 2016 at 15:43:28 UTC, rcorre wrote: On Monday, 7 March 2016 at 22:47:13 UTC, Luis wrote: I try to grab dstep with dub fetch step (dub version 0.9.24, built on Aug 19 2015, on Ubuntu), and try to run dub build step. I can confirm that on my machine takes around 5 seconds

Re: Speed up `dub`.

2016-03-08 Thread WebFreak001 via Digitalmars-d-learn
On Monday, 7 March 2016 at 21:49:59 UTC, xcvn wrote: Yes but if he wants to build then `--describe` will not help that much ! dub uses that internally for finding the files for compiling, so thats the cause of the slowdown

Re: Speed up `dub`.

2016-03-07 Thread Luis via Digitalmars-d-learn
On Monday, 7 March 2016 at 18:58:55 UTC, ciechowoj wrote: dub --version DUB version 0.9.24+161-gb9ce700, built on Feb 23 2016 `dub.json` is `dub.json` of dstep `dub test --skip-registry=all` Do not helps. I try to grab dstep with dub fetch step (dub version 0.9.24, built on Aug 19 2015, on

Re: Speed up `dub`.

2016-03-07 Thread Seb via Digitalmars-d-learn
On Monday, 7 March 2016 at 09:18:37 UTC, ciechowoj wrote: I'm using `dub` to build project. And every time I run `dub` it seems to check if dependencies are up to date, which takes some time. Is there a way to switch of that checking? Or any other way to speed up building process? It really

Re: Speed up `dub`.

2016-03-07 Thread xcvn via Digitalmars-d-learn
On Monday, 7 March 2016 at 19:58:19 UTC, WebFreak001 wrote: On Monday, 7 March 2016 at 18:58:55 UTC, ciechowoj wrote: dub --version DUB version 0.9.24+161-gb9ce700, built on Feb 23 2016 `dub.json` is `dub.json` of dstep `dub test --skip-registry=all` Do not helps. Its because of dub going

Re: Speed up `dub`.

2016-03-07 Thread WebFreak001 via Digitalmars-d-learn
On Monday, 7 March 2016 at 18:58:55 UTC, ciechowoj wrote: dub --version DUB version 0.9.24+161-gb9ce700, built on Feb 23 2016 `dub.json` is `dub.json` of dstep `dub test --skip-registry=all` Do not helps. Its because of dub going through all those JSON files. For example just querying the

Re: Speed up `dub`.

2016-03-07 Thread Daniel Kozak via Digitalmars-d-learn
I would say dub is broken and should be fixed. Even dub run is really slow and try to build everything. So please report a bug: https://github.com/D-Programming-Language/dub/issues Dne 7.3.2016 v 19:58 ciechowoj via Digitalmars-d-learn napsal(a): dub --version DUB version 0.9.24+161-gb9ce700,

Re: Speed up `dub`.

2016-03-07 Thread ciechowoj via Digitalmars-d-learn
dub --version DUB version 0.9.24+161-gb9ce700, built on Feb 23 2016 `dub.json` is `dub.json` of dstep `dub test --skip-registry=all` Do not helps.

Re: Speed up `dub`.

2016-03-07 Thread Martin Tschierschke via Digitalmars-d-learn
On Monday, 7 March 2016 at 09:18:37 UTC, ciechowoj wrote: I'm using `dub` to build project. And every time I run `dub` it seems to check if dependencies are up to date, which takes some time. Is there a way to switch of that checking? Or any other way to speed up building process? It really

Re: Speed up `dub`.

2016-03-07 Thread Luis via Digitalmars-d-learn
On Monday, 7 March 2016 at 09:18:37 UTC, ciechowoj wrote: I'm using `dub` to build project. And every time I run `dub` it seems to check if dependencies are up to date, which takes some time. Is there a way to switch of that checking? Or any other way to speed up building process? It really

Re: Speed up `dub`.

2016-03-07 Thread ciechowoj via Digitalmars-d-learn
On Monday, 7 March 2016 at 09:22:16 UTC, Daniel Kozak wrote: maybe: dub build --nodeps Dne 7.3.2016 v 10:18 ciechowoj via Digitalmars-d-learn napsal(a): I'm using `dub` to build project. And every time I run `dub` it seems to check if dependencies are up to date, which takes some time. Is

Re: Speed up `dub`.

2016-03-07 Thread Daniel Kozak via Digitalmars-d-learn
maybe: dub build --nodeps Dne 7.3.2016 v 10:18 ciechowoj via Digitalmars-d-learn napsal(a): I'm using `dub` to build project. And every time I run `dub` it seems to check if dependencies are up to date, which takes some time. Is there a way to switch of that checking? Or any other way to speed