We have profiled some parts of this library and find that these two lines are inefficient:
transition_freqs = phP_get_transition_frequencies(
theta_intrinsic, coeffs[5], coeffs[6], chip
)
hPhenomDs, phi_IIb = PhenomPOneFrequency(
fs, m2, m1, chi2_l, chi1_l, chip, phic, M, dist_mpc, coeffs, transition_freqs
)
There is an interp that uses searchsorted, and also also [argmin] indexing that can be sped up.
Also,

We have profiled some parts of this library and find that these two lines are inefficient:
There is an interp that uses

searchsorted, and also also[argmin]indexing that can be sped up.Also,