From d523129929e87aab56da81d5b3c5b3f1e1c6c2c4 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 26 Feb 2021 17:57:51 +0000 Subject: [PATCH] Minor performance improvements. Fixes https://gitlab.com/kicad/code/kicad/issues/7720 --- pcbnew/drc/drc_test_provider_copper_clearance.cpp | 2 +- pcbnew/drc/drc_test_provider_silk_clearance.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/drc/drc_test_provider_copper_clearance.cpp b/pcbnew/drc/drc_test_provider_copper_clearance.cpp index 6dffa49163..8fdeff31c0 100644 --- a/pcbnew/drc/drc_test_provider_copper_clearance.cpp +++ b/pcbnew/drc/drc_test_provider_copper_clearance.cpp @@ -642,7 +642,7 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadAgainstItem( PAD* pad, SHAPE* pa void DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadClearances( ) { - const int delta = 25; // This is the number of tests between 2 calls to the progress bar + const int delta = 50; // This is the number of tests between 2 calls to the progress bar size_t count = 0; diff --git a/pcbnew/drc/drc_test_provider_silk_clearance.cpp b/pcbnew/drc/drc_test_provider_silk_clearance.cpp index 3dc18c79dc..562d5fb0f3 100644 --- a/pcbnew/drc/drc_test_provider_silk_clearance.cpp +++ b/pcbnew/drc/drc_test_provider_silk_clearance.cpp @@ -83,7 +83,7 @@ private: bool DRC_TEST_PROVIDER_SILK_CLEARANCE::Run() { // This is the number of tests between 2 calls to the progress bar - const int delta = 250; + const int delta = 1000; m_board = m_drcEngine->GetBoard();