Closed (fixed)
Project:
WFS
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Jan 2011 at 01:30 UTC
Updated:
31 Jan 2011 at 01:40 UTC
WFS views waste CPU time, rendering each field twice: first in views_plugin_style::render_fields(), and after that in views_plugin_style_wfs::map_rows(). Attached is a patch (against CVS HEAD) which omits the 2nd rendering, instead using results from the 1st (available via views_plugin_style::get_field() function).
I am not a Views expert, so perhaps I got something wrong. But it works for me, and makes my view run 40% faster.
| Comment | File | Size | Author |
|---|---|---|---|
| wfs-get_field-optimization.diff | 2.26 KB | ahtih |
Comments
Comment #1
tmcw commentedGreat, thanks. Committed: http://drupal.org/cvs?commit=483180