mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-20 13:24:24 +02:00
f6c9aeb177
Every formula evaluation constructed a QSettings, although only element formulas read it (border-columns_0, for %c). Constructing QSettings is costly, on Windows a registry lookup, and conductor labels are evaluated in bulk: Conductor::refreshText() runs for every wire of a folio when it is built, and for every wire of every built folio when the project or a title block changes. Debug build, 40 folios with 4,280 numbered wires: - refreshText() of every wire: 1,136-1,264 ms before, 203-208 ms after - opening the project (database fill): 2.24-2.48 s before, 1.46-1.59 s after - building 39 lazy folios: 15.0-15.3 s before, 12.3-12.5 s after Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>