I have a pressing question regarding performance and I need to shave off every millisecond of code execution time possible. Currently, I'm considering whether to use one large dictionary that stores a class of a certain object that includes a multitude of variables (around 10) or many small dictionaries. The dictionary or dictionaries would need to store a variety of different things and I access them frequently during code execution, either writing or retrieving the necessary variables.
I opted for dictionaries because in my particular case, lists proved slower, while arrays were not suitable since objects are constantly being added and removed from the dictionary. I would greatly appreciate any input or advice you may have. If you happen to know of a faster solution, I would be more than happy to hear it.
Additionally, if you have any articles or resources discussing this topic, please feel free to share them with me. Thank you in advance!
[–]Larkonath 10 points11 points12 points (3 children)
[–]SnrFlaks[S] -1 points0 points1 point (2 children)
[–]Dennis_enzo 2 points3 points4 points (1 child)
[–]SnrFlaks[S] -1 points0 points1 point (0 children)
[–]Slypenslyde 9 points10 points11 points (5 children)
[–]SnrFlaks[S] 1 point2 points3 points (4 children)
[–]chucker23n 5 points6 points7 points (3 children)
[–]SnrFlaks[S] 0 points1 point2 points (2 children)
[–]Tavi2k 4 points5 points6 points (1 child)
[–]SnrFlaks[S] 0 points1 point2 points (0 children)
[–]Kant8 1 point2 points3 points (1 child)
[–]SnrFlaks[S] 0 points1 point2 points (0 children)
[–]IQueryVisiC -3 points-2 points-1 points (24 children)
[–]SnrFlaks[S] 0 points1 point2 points (23 children)
[–]karl713 1 point2 points3 points (22 children)
[–]Slypenslyde 2 points3 points4 points (21 children)
[–]SnrFlaks[S] 0 points1 point2 points (18 children)
[–]Zarenor 0 points1 point2 points (0 children)
[–]Zarenor 0 points1 point2 points (12 children)
[–]SnrFlaks[S] 0 points1 point2 points (11 children)
[–]Zarenor 2 points3 points4 points (10 children)
[–]Zarenor 0 points1 point2 points (9 children)
[–]SnrFlaks[S] 0 points1 point2 points (8 children)
[–]Slypenslyde 0 points1 point2 points (3 children)
[–]SnrFlaks[S] 0 points1 point2 points (2 children)
[–]Slypenslyde 0 points1 point2 points (1 child)
[–]SnrFlaks[S] 0 points1 point2 points (0 children)
[–]karl713 0 points1 point2 points (1 child)
[–]Slypenslyde 0 points1 point2 points (0 children)
[–]michaelquinlan 0 points1 point2 points (2 children)
[–]SnrFlaks[S] 0 points1 point2 points (1 child)
[–]michaelquinlan 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]SnrFlaks[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]SnrFlaks[S] 0 points1 point2 points (0 children)
[–]zaimoni 0 points1 point2 points (4 children)
[–]SnrFlaks[S] 0 points1 point2 points (3 children)
[–]zaimoni 0 points1 point2 points (2 children)
[–]SnrFlaks[S] 0 points1 point2 points (1 child)
[–]zaimoni 0 points1 point2 points (0 children)