1 / 16

Eternal Performance: The Sisyphean Task of Samsara and Locks

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).

Télécharger la présentation

Eternal Performance: The Sisyphean Task of Samsara and Locks

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Performancebury Tales

  2. Sisyphus Performance is hard

  3. Sisyphus You cannot stop

  4. Sisyphus ..but..

  5. Sisyphus It’s NOT useless

  6. Samsara

  7. Samsara Non-synchronized access to shared • System.Collections.Hashtable • System.Collections.Generic.Dictionary<> • System.Collections.Generic.Hashset<>

  8. 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!

  9. Lernaean Hydra

  10. Lernaean Hydra System.Diagnostics.Debug

  11. The 300 Spartans

  12. The 300 Spartans Outbound connections

  13. Narcissus

  14. Narcissus Compiled expressions

  15. Narcissus Enum.ToString() can be 85% faster How to implement QuickToString: http://der-waldgeist.blogspot.com/2010/08/3-enumtostring.html

  16. Ask me! • Alexey Nedilko • alexey_nedilko@epam.com • skype:alexey.nedilko

More Related