Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Start by implementing a simple but correct solution and measure it under realistic high loads. If there's no performance problem you have no problem. If performance actually degrades enough to cause issues, you can start to analyze and optimize. Commented Mar 27, 2019 at 13:25
  • Locking is the only way you have to take care of this. Commented Apr 16, 2019 at 20:24