By the way, about the performance concerns: sizeof(tests) in the first patch is 1224 bytes, so we're talking about optimizing the initialization of a test array that is slightly more than a kibibyte in size. -Alex