Skip to content

Instantly share code, notes, and snippets.

@dustinhartlyn
dustinhartlyn / gist:798c6d0514e03146306524911b497435
Created July 24, 2026 01:16
Benchmark for FreeCAD PR: analytic line/line intersection in WireJoiner.
"""
Benchmark for FreeCAD PR: analytic line/line intersection in WireJoiner.
It builds a sketch of crossing straight lines (N horizontal + N vertical, so
N*N interior crossings) and times a recompute. That recompute runs the shape
build, which is where WireJoiner::splitEdges() does its work, and a grid of
crossing lines is the case that path is most expensive for.
How to run
----------