Slow compile speed when initializing a container with ~7000 elements

Viewed 453

I have the following in a source file:

const std::vector<std::vector<UChar32>> table = {
    { 0x1234, 0xabcd },
    { 0x5678, 0xef01, 0xfe21},
    // ~7000 more elements omitted
};

and compile times with Visual Studio 2013 are extremely slow (I've waited 30 minutes on an i7-2600 before aborting). Is there some way to speed things up?

Edit: I should add that this source file only contains this definition, as well as the necessary includes. UChar32 is simply a typedef of std::int32_t.

3 Answers
Related