you can profile the code to see which parts of it take mnore time to narrow down functions which you could optimize