Well i got my custom plugin its about 4k lines and i thinking about few simple optimisations so get_user_ip and get_user_authid exists in 11 functions its useless to getting same results for same id everytime its called. As far i have done research that calling such things may cause cpu usage, why just don't save it to memory for every player index, on client putinserver event it could be cached to an string variable, as player disconnect called client disconnect event, the ip and authid will be reseted to zero. Also its impossible that authid or ip can be changed in realtime @server.
Okay for the questions..
Is this worth (i see less cpu chokes, slutters, less cpu usage)?
Is this possible (cache ip and auth in player index (global string variable))?
I know that this will use a bit more memory, can i expect memory garbages?