Task #8732

Small improvement of ForViewHelper

Added by Michael Feinbier almost 12 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Should have
Category:
ViewHelpers
Target version:
-
Start date:
2010-07-08
Due date:
% Done:

100%

Estimated time:
Has patch:

Description

In the Tx_Fluid_ViewHelpers_ForViewHelper there's a method convertToArray() which extracts an array from the traversable object via foreach.
This should be replaced by the function iterator_to_array() which does basically the same but more performant on huge objects than foreach'ing manually.

Patches for v4 and v5 branch are attached.


Files

#1

Updated by Bastian Waidelich almost 12 years ago

  • Status changed from New to Accepted

That's great, I didn't know that function. Thanks!

#2

Updated by Bastian Waidelich almost 12 years ago

  • Tracker changed from Bug to Task
#3

Updated by Bastian Waidelich almost 12 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r4898.

Also available in: Atom PDF