Problem/Motivation
In our website we have 263388 taxonomy terms and hook_update taxonomy_update_7012 takes more than 10h for execution
Proposed resolution
I have a work around that reduce the execution time to less than 2 minutes.
I will provide a patch for this.