SMF Development > Applied or Declined Requests
Something like loadMemberData() but which RETURNS the data
Arantor:
--- Quote ---Right, slower and faster.
Anyway, I guess this may indeed be a performance issue now that I think about it, playing with big arrays.
--- End quote ---
No, just slower. You still need to push it into global and then clone it to be able to return it.
It might be faster for *you to use* but not for the users of the forum.
--- Quote ---Well, I don't know for the heck of life what place it is put in. It isn't even mentioned in the function database AFAICR.
--- End quote ---
$user_profile contains it.
Also note that loadMemberContext also does something similar; it loads it into $memberContext and returns true so that you know it was able to do so. Much faster than building that array and passing it back as a value.
Yoshi:
--- Quote from: Arantor on May 03, 2012, 08:55:35 PM ---
--- Quote ---Right, slower and faster.
Anyway, I guess this may indeed be a performance issue now that I think about it, playing with big arrays.
--- End quote ---
No, just slower. You still need to push it into global and then clone it to be able to return it.
It might be faster for *you to use* but not for the users of the forum.
--- End quote ---
I was just quoting what you said, lol. Damn should be more clear, being tired isn't going to help much with that.
--- Quote ---
--- Quote ---Well, I don't know for the heck of life what place it is put in. It isn't even mentioned in the function database AFAICR.
--- End quote ---
$user_profile contains it.
Also note that loadMemberContext also does something similar; it loads it into $memberContext and returns true so that you know it was able to do so. Much faster than building that array and passing it back as a value.
--- End quote ---
Oh, thanks, that's good to know. I was jiggling around like this lol:
--- Code: ---loadMemberContext(otherid);
$user = $context['user'];
loadMemberContext(originalid);
--- End code ---
Which in the end didn't work, as you may have guessed :P
Navigation
[0] Message Index
[*] Previous page
Go to full version