[qu2cu] Micro-optimize cython

This commit is contained in:
Behdad Esfahbod 2023-04-22 12:43:19 -06:00
parent a91c3381b5
commit 14ec21af40

View File

@ -101,6 +101,7 @@ def elevate_quadratic(p0, p1, p2):
)
@cython.cfunc
@cython.locals(
start=cython.int,
n=cython.int,
@ -298,7 +299,6 @@ def spline_to_curves(q, costs, tolerance=0.5, all_cubic=False):
for i in range(1, len(elevated_quadratics) + 1):
best_sol = impossible
for j in range(start, i):
j_sol_count, j_sol_error = sols[j].num_points, sols[j].error
if not all_cubic: