Closed (works as designed)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Nov 2009 at 18:16 UTC
Updated:
27 Jan 2010 at 15:22 UTC
Jump to comment: Most recent file
Comments
Comment #1
casey commentedComment #2
casey commentedComment #3
casey commentedbluh, line endings.
Comment #4
catchThis looks good, we already have tests for drupal_render() sorting so it's clearly passing those.
Attached before/after screenshots from kcachegrind. When displaying ten nodes, this cuts calls to element_children() by half.
Comment #5
catchForgot to set RTBC.
Comment #6
dries commentedCommitted to CVS HEAD. Thanks.
Comment #7
moshe weitzman commentedNo brainer. +1.
Comment #8
Bojhan commentedYou guys crossposted
Comment #9
yched commentedHm, I get node forms without title, body, nor any Field API widgets in current HEAD. Back to normal if I revert that patch :-p.
Comment #10
casey commentedme too :p how did this pass?
Comment #11
yched commented"How did this pass".
How indeed. We do test Field API form integration, but on our 'test_entity' forms, not specifically on node forms. Not sure why this patch would act on node forms or 'test_entity' forms differently.
Comment #12
yched commentedEr, yet with body and title as fields, it's quite surprising that *0* test failed in our whole suite...
Comment #13
casey commentedOw I do see title and body, but forms are sorted incorrectly.
Comment #14
catchHm, I looked at node listing when doing the profiling, but not the forms. Here's a rollback anyway.
Comment #15
dries commentedRollbacked using patch #14.
Comment #16
casey commentedCall to element_children is necessary as it is sorting the elements (since D7).