© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
64 replies
hugeman

❔ Best way to cache index of an object in a list

I have a list with anywhere from 0 to maybe 1000 objects in it, and I have to try and find the index of that object very quickly (during mouse move events, so 100s of times per second possibly)
What would be a good way to optimise this?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Next page

Similar Threads

✅ ToString of a list of an object
C#CC# / help
3y ago
Add an object to list
C#CC# / help
2y ago
List as a field of an object. [Answered]
C#CC# / help
4y ago
❔ Best way to display a continually updating list of messages
C#CC# / help
3y ago