If you could give some details on what you are attempting to process that takes 10 hours that would be helpful. You can process billions of instructions in that time frame so you must have a loop that is unending or some other type bug. What is the amount of data you are processing. What is the file structure you are using (text, db, ?). Hard to diagnose your problem without more information.
thanks