Minor performance improvements.

Fixes https://gitlab.com/kicad/code/kicad/issues/7720
This commit is contained in:
Jeff Young 2021-02-26 17:57:51 +00:00
parent c716313a24
commit d523129929
2 changed files with 2 additions and 2 deletions

View File

@ -642,7 +642,7 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadAgainstItem( PAD* pad, SHAPE* pa
void DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadClearances( ) 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; size_t count = 0;

View File

@ -83,7 +83,7 @@ private:
bool DRC_TEST_PROVIDER_SILK_CLEARANCE::Run() bool DRC_TEST_PROVIDER_SILK_CLEARANCE::Run()
{ {
// This is the number of tests between 2 calls to the progress bar // 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(); m_board = m_drcEngine->GetBoard();