In our many APIs that use gigantic arrays of doom we prefix the keys of properties with "#". Anything can create its own custom property. But oftentimes these custom properties are missing the leading hash.
Because of this D7 was forced to make compromises in how array sorting works. These compromises mean that sorting doesn't perform as quickly as it could. Also it just makes the API inconsistent. See the D7 issue:
#872680: Improve speed of sorting
We need to find all cases where custom properties are not prefixed with a hash. Then we can make the improvements to the API.
Comments
Comment #1
dalinThis patch should help reveal custom properties that don't prefix with a hash:
http://drupal.org/node/872680#comment-3400406
Comment #2
jhedstromThis probably needs to at least be 8.1.
Comment #15
catchThis is an API improvement, so moving to a task. Could also use some examples in the issue summary.