Poor performance in SchematicCleanUp() in eeschema
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Low
|
Seth Hillbrand |
Bug Description
I'm not sure which recent change caused this (could be the library system or several other candidates), but KiCad now freezes for at least 20 seconds when switching sheets in one of my larger projects.
Application: kicad
Version: (2017-12-09 revision 48388695a)-master, debug build
Libraries:
wxWidgets 3.0.3
libcurl/7.57.0 OpenSSL/1.1.0g zlib/1.2.11 libidn2/2.0.4 libpsl/0.18.0 (+libidn2/2.0.4) libssh2/1.8.0 nghttp2/1.28.0
Platform: Linux 4.14.4-1-ARCH x86_64, 64 bit, Little endian, wxGTK
Build Info:
wxWidgets: 3.0.3 (wchar_t,wx containers,
Boost: 1.65.1
Curl: 7.57.0
Compiler: GCC 7.2.0 with C++ ABI 1011
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_SPICE=ON
Changed in kicad: | |
status: | Fix Committed → Fix Released |
Is this only on the first sheet switch or every sheet switch? Please
keep in mind, the new symbol library table uses lazy loading so if you
open a sheet with symbols in libraries that have not been opened yet,
there will be a performance penalty as the libraries are parsed.
However, 20 seconds seems way out of line from what I have seen (<1s).
I could move this time penalty to the start up time of Eeschema and just
load every library at launch time and then it should not be issue. Try
opening symbol chooser first because it load every symbol in the symbol
library table and see if that improves your sheet load performance.
Technically the new symbol loading should be faster because there is no
more searching every library for a symbol name unit it's found unless
the symbol cannot be found in it's specified library and falls back to
the cache library.
On 12/09/2017 05:58 PM, Chris Pavlina wrote: compatible with 2.8) GTK+ 2.24 GRAPHICS_ CONTEXT= OFF _MODULES= ON _WXPYTHON= ON _ACTION_ MENU=OFF PLUGIN= ON
> Public bug reported:
>
> I'm not sure which recent change caused this (could be the library
> system or several other candidates), but KiCad now freezes for at least
> 20 seconds when switching sheets in one of my larger projects.
>
> Application: kicad
> Version: (2017-12-09 revision 48388695a)-master, debug build
> Libraries:
> wxWidgets 3.0.3
> libcurl/7.57.0 OpenSSL/1.1.0g zlib/1.2.11 libidn2/2.0.4 libpsl/0.18.0 (+libidn2/2.0.4) libssh2/1.8.0 nghttp2/1.28.0
> Platform: Linux 4.14.4-1-ARCH x86_64, 64 bit, Little endian, wxGTK
> Build Info:
> wxWidgets: 3.0.3 (wchar_t,wx containers,
> Boost: 1.65.1
> Curl: 7.57.0
> Compiler: GCC 7.2.0 with C++ ABI 1011
>
> Build settings:
> USE_WX_
> USE_WX_OVERLAY=OFF
> KICAD_SCRIPTING=ON
> KICAD_SCRIPTING
> KICAD_SCRIPTING
> KICAD_SCRIPTING
> BUILD_GITHUB_
> KICAD_USE_OCE=ON
> KICAD_SPICE=ON
>
> ** Affects: kicad
> Importance: Low
> Status: New
>
>
> ** Tags: eeschema
>