Performance difference between using the player object or player.UserId as a key in a dictionary


I currently use player object as a key for dictionaries for storing player related data (per session, not DataStores) but I am now wondering if it’s better performance wise to use player.UserId instead. Is there even a difference?

Thank you

Micro optimization isn’t really all that important, but if you wanna save index cost, use Player instance but in the end it’s all just for a feeble performance boost that isn’t really noticeable or worth it.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.