pcbnew performance loss when using custom hotkeys
Description
Having non default keyboard shortcuts makes pcbnew (or whole kicad, it seems, but cannot confirm) 3..5x times slower, see steps to reproduce. In the video, it can be seen, that fp properties window takes to load 20 seconds, from 1:19:
Attaching problematic "user.hotkeys": user.hotkeys
Steps to reproduce
-
Delete
%appdata%\kicad\6.99\user.hotkeys
; -
Start KiCad,
Open Demo project
-> Stickhub; -
Open PCB of the project;
-
Double click on any connector to open its properties. This takes ~4 seconds on my PC;
-
Go to PCBnew preferences -> Hotkeys -> Assign key
C
asCommon\Duplicate
, hit OK to close preferences: -
Repeat step 4. Now this takes ~20 seconds to show footprint properties dialog;
-
Repeat step 1 (with or without kicad running), repeat step 4, the action is fast again.
Edit: I am running Windows 10 Home (Kicad wrongly recognizes this as windows 8):
KiCad Version
Application: KiCad PCB Editor (64-bit)
Version: (6.99.0-1830-g623dc8980f), release build
Libraries:
wxWidgets 3.1.6
FreeType 2.11.1
HarfBuzz 3.2.0
FontConfig 2.14.0
libcurl/7.82.0-DEV Schannel zlib/1.2.12
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: May 9 2022 14:03:12
wxWidgets: 3.1.6 (wchar_t,wx containers)
Boost: 1.79.0
OCC: 7.6.0
Curl: 7.82.0-DEV
ngspice: 36
Compiler: Visual C++ 1929 without C++ ABI
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON