The problem was caused by commit b324f3f5ccc7a4a52924f9245e51f07066cd6c00. Large via arrays can lead to performance degradation. This ticket is related to that discussion: https://www.klayout.de/forum/discussion/2839/drc-scripts-reports-and-parallelism#latest.