qa_pcbnew profiling results

52 views
Skip to first unread message

Sylwester Kocjan

unread,
Apr 29, 2023, 2:51:34 PM4/29/23
to dev...@kicad.org
Hello!

I was wondering why pcbnew tests take so long time and I ran gpof on them. Sadly, I don't know what can be improved without in-depth knowledge of architecture. Let me share the results, maybe someone will find it interesting.

Best regards,
Sylwester

prof_results.tar.bz2

Seth Hillbrand

unread,
May 1, 2023, 1:00:10 PM5/1/23
to dev...@kicad.org
Which tests are you referring to?  Do you mean that running DRC on a specific board takes a long time?  Or do you mean that running `make test` takes a long time in the KiCad codebase?

If you mean the former, you will need to open an issue report and attach the specific board.

If you mean the latter, this is a known problem but without an adequate solution.  We need to open many, many boards and run checks to ensure that software updates do not regress prior solutions.  Each board load takes a fair amount of time.

Seth

KiCad Services Corporation Logo
Seth Hillbrand
Lead Developer
+1-530-302-5483
Long Beach, CA
www.kipro-pcb.com    in...@kipro-pcb.com


--
You received this message because you are subscribed to the Google Groups "KiCad Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to devlist+u...@kicad.org.
To view this discussion on the web visit https://groups.google.com/a/kicad.org/d/msgid/devlist/daf16fd424ef482f8b5261e49aab235f%40grupawp.pl.

Sylwester Kocjan

unread,
May 2, 2023, 9:22:11 AM5/2/23
to dev...@kicad.org
Hi Seth,

I mean the latter (i.e qa_pcbnew) and I wanted to find out which functions take so much time. It turns out that it's R-tree, clipper library, even shared_ptr.

BR,
Sylwester

Reply all
Reply to author
Forward
0 new messages