Or maybe split it into multiple private static methods which can be called from the initializer?
That's one of the optimization we did in core/pull/1490 . The problem is that even if we split the static initializer there is a constant_pool size limit (among others) per class file. Also I think we cannot get rid of this initializer due to performance reasons.
|