On title_field_views_data_alter we have a recursive call, we first call entity_get_info to get all infos and then call title_field_replacement_info which calls again entity_get_info.

Here are some stats from one of our projects:

Before patch entity_get_info():
Calls: 29,324
Excl. Wall Time (microsec): 292,669

After patch entity_get_info():
Calls: 20,936
Excl. Wall Time (microsec): 70,270

Before patch title_field_replacement_info():
Calls: 9,720
Excl. Wall Time (microsec): 52,389

After patch title_field_replacement_info():
Calls: 1,332
Excl. Wall Time (microsec): 4,818

Comments

ShaxA created an issue. See original summary.

shaxa’s picture

shaxa’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work
shaxa’s picture

shaxa’s picture

Status: Needs work » Needs review
sylus’s picture

Status: Needs review » Reviewed & tested by the community

Makes complete sense and in my albeit not as useful since less data profiling on a distro base install:

Before patch entity_get_info():
Calls: 501
Excl. Wall Time (microsec): 1,834

After patch entity_get_info():
Calls: 425
Excl. Wall Time (microsec): 1,573

Before patch title_field_replacement_info():
Calls: 51
Excl. Wall Time (microsec): 387

After patch title_field_replacement_info():
Calls: 31
Excl. Wall Time (microsec): 238

joelpittet’s picture

Assigned: shaxa » Unassigned
Issue summary: View changes
StatusFileSize
new222.25 KB

This is great! RTBC++

Clearing views cache saved 700ms!

  • ShaxA authored 4260a65 on 7.x-1.x
    Issue #2605040 by ShaxA, joelpittet, sylus: Removed recursive call to...
plach’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.