Compile time is a result of resources available and the complexity of the query. The more complex the query, the longer it will take. Also, if the query is in use, a recompile will be blocked until execution completes.
A lot more information would be needed to help you out with this one.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood" - Theodore Roosevelt