Suggestions on optimizing my code?

Discussion in 'Plugin Development' started by slayr288, May 19, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    slayr288

    So, I've never really optimized any of my code, and my plugin WorldTimer is something that looks like it could be optimized pretty well since I just hacked it up.

    The plugin itself limits a players time in a world, and when they leave, the time they had left will be the time that they will have when they return to the world. Also, when you logout, your times will not lower, and be the same when you return.

    Here is the github link: Link
     
  2. Offline

    LucasEmanuel

    You seem to be doing file-operations on the main server thread. If you have the knowhow do it on a separate thread/async task
     
Thread Status:
Not open for further replies.

Share This Page