Before anyone can suggest 'other way to reduce the time and boost the performance of the code' you should post the code in question. That way people can suggest changes which could be made. Take a look at How do I post a question effectively? regards posting pertinent information.