Judes
✅ Growing memory issues for ASP.NET Core App
Best documentation out there: https://learn.microsoft.com/en-us/dotnet/core/diagnostics/debug-memory-leak
30 replies
❔ Best way to cache index of an object in a list
Here's an article on hash sets: https://medium.com/@shawnastaff/c-collection-types-hashset-vs-list-bae022e7b439.
65 replies
❔ Best way to cache index of an object in a list
Well, to answer your question: the most appropriate data type here appears to be
HashSet<Clip>
instead of List<Clip>
, since it guarantees uniqueness of elements, ordering doesn't matter, and all read/write operations are O(1).
(That said, this whole project is overwhelmingly overengineered, and if I'm being honest performance is the absolute last thing you should be worrying about here.)65 replies