I've spent a few hours this afternoon tracing through the code to Media (1.x) to discover why the thumbnail display takes, for my sample content, 70 times longer to display than the list. Eventually, it boiled down to the call to `image_load` in the `file_entity_file_formatter_file_image_view` function. Removing this call (and hardcoding the `#width` and `#height` values in the `$element` returned by the formatter) result in runtimes which are approximately equivalent to the list view.
I've not tried 2.x, but I have examined the code for `file_entity` (4db2744b1d3d1f5e50a2390bb48dc45645365ed6) and find the same call in the same place, so I expect the same problem applies.
I'm not sure what the correct solution is (either ditching the dimension attributes on the rendered `` tag and letting the image style return whatever, or caching image dimensions when the file is created) but invoking `image_load` every time it's displayed seems to me to be unsupportable.
|#24||no_image_load_in_formatter-1447790-24.patch||6.63 KB||Devin Carlson|
FAILED: [[SimpleTest]]: [MySQL] 11 pass(es), 0 fail(s), and 12 exception(s).