160 likes | 238 Vues
This performance-heavy tale delves into the persistence of Sisyphus, mirroring the non-synchronized access to shared collections like Hashtable and Dictionary in a system. The journey parallels the noble yet challenging Eightfold Path of Samsara, emphasizing the importance of locking shared hashtables for smooth operation. Amidst the Lernaean Hydra of complexities and outbound connections, Narcissus shines with faster Enum.ToString(), offering insights on implementing QuickToString efficiently. For guidance, reach out to Alexey Nedilko via email (alexey_nedilko@epam.com) or Skype (alexey.nedilko).
E N D
Sisyphus Performance is hard
Sisyphus You cannot stop
Sisyphus ..but..
Sisyphus It’s NOT useless
Samsara Non-synchronized access to shared • System.Collections.Hashtable • System.Collections.Generic.Dictionary<> • System.Collections.Generic.Hashset<>
Samsara The Noble Eightfold Path • Do not forget to lock shared hastables! • Do not forget to lock shared hastables! • Do not forget to lock shared hastables! • Do not forget to lock shared hastables! • Do not forget to lock shared hastables! • Do not forget to lock shared hastables! • Do not forget to lock shared hastables! • Do not forget to lock shared hastables!
Lernaean Hydra System.Diagnostics.Debug
The 300 Spartans Outbound connections
Narcissus Compiled expressions
Narcissus Enum.ToString() can be 85% faster How to implement QuickToString: http://der-waldgeist.blogspot.com/2010/08/3-enumtostring.html
Ask me! • Alexey Nedilko • alexey_nedilko@epam.com • skype:alexey.nedilko