DUB - call to arms

Basile B. b2.temp at gmx.com
Wed May 1 15:54:53 UTC 2019


On Saturday, 27 April 2019 at 00:37:35 UTC, H. S. Teoh wrote:
> On Sat, Apr 27, 2019 at 12:02:58AM +0000, Basile B. via 
> Digitalmars-d wrote: [...]
>> For dexed I have a project group that contains the 3 sdl for 
>> dmd/druntime/phobos. It's very slow to load... the IDE 
>> launches dub 3 times to convert the projects to JSON and it 
>> takes 8 to 10 seconds. But none of the sdl contains 
>> dependencies, nor configs, build types or whatever...
>> 
>> I have the feeling that dub does something stupid with the 
>> files since these 3 repos contains many.
>
> Shouldn't we be able to just run a profiler on dub to figure 
> out where it's spending those 10 seconds? (or about 3 seconds 
> per run.)  Seems like something easy enough to identify, even 
> if the problem itself may not be so simple to fix.  We should 
> find out whether it's CPU-bound, I/O-bound, or network-bound, 
> at the very least.
>
>
> T

I've determined that the slowdown is caused by the auto-fetch 
option of the IDE. When disabled the group loads instantly. 
Actually there are dependencies in the sdl for DMD: dmd:lexer, 
dmd:parser, dmd:frontend. Dexed fails to determine that they are 
described directly in the description.


More information about the Digitalmars-d mailing list