Same issue. In a struct with nothing more than a bunch of static constants (roughly 1,300), each keystroke took about two seconds. Splitting the struct up into several extensions (each with about 50 constants), seemed to resolve the issue in that file.