Just profile the slow parts and rewrite them in rustm, easy.