@volodymyrc on WordPress.org
Mentioned in [31365] on Core SVN:Remove unnecessary `array_shift()` usage in `get_terms()` for better performance.
Created ticket #31182 on Core Trac:array_shift in taxonomy.php very slow on large array