Make your code less sloppy ?
Mean no offence... But you say your self, that you suspect your changes to cause slowliness... There is no magic "make it run faster" switch. Without knowing what you did, not much advice can be given.
You are the one who know what's going on.
Identifying what method(es) exactly take the most time and/or are called upon repeatedly would be a good first step. You should be able to do this by thinkig about your codes functionality. But debugger can help as well, if you are stuck.
Once you know where the bottle neck is, you can think how to adress it. There might be tons of little things piling up... Or maybe you have a combinatorial/complexity issue there... (Checking all possible combinations of ....)
Concider changing the code to use more memory for better running time - caching stuff that is used often.