magic-fields-team/Magic-Fields-2 — Issue #122: function get_group() too slow
Author: kobobo
Created: 2012-03-08 09:47:43+00:00
State: open

I tested the get_group function with huge data in the arrays. It gets very very slow.

I went to the function and returned not the $result formed in a forach loop, but returned the $fields. The speed is amazing now. I think that is because every function call, loops all data, build an array and return the array. Now in Theme, you do the same again, get the array, make a foreach and so on. This is not neccessary. You can get a better array from get_group() with the return of $fields. Much more flexible and faster for me.