Ad
  • Default User Avatar

    I would recommend reading about optimisation generally. Its not a topic i could simply give a magic solution for. Especially not without seeing your code. Memoisation may be helpful, you could look into that.

    If that doesnt work, try asking chatgpt about general optimisation and keep feeding it more information about your code until it tells you something you can work with. Try not to just straight up ask for an answer though, thats cheating - just ask what directions you could look into.