[phobos] Building generated/osx/release/32/unittest/std/string takes 400+ seconds on OSX

Jonathan M Davis jmdavisProg at gmx.com
Sat Sep 24 14:25:50 PDT 2011


On Saturday, September 24, 2011 15:32:31 Andrei Alexandrescu wrote:
> Haven't noticed that before. Does anyone know offhand of the reason?

I'm betting it's the compilation time. It looks like it takes about 20 seconds 
on my machine in 64-bit Linux for debug and about 40 for release (timing it in 
my head, so I could be off by several seconds), but it takes about 26 
milliseconds to run the tests in debug, and about 21 in release. So, clearly 
the compilation time is the much greater of the two.

My guess would be that it has to do with the foreach loops over TypeTuples 
that std.string uses to generate a number of its tests, but I don't know.

- Jonathan M Davis


More information about the phobos mailing list