This module of my app will be used multiple times in my app so I want it to be as good as possible. It basically manages navigation by focusing elements.
For now I have it as you'll see in the script I've adjunted because I was looking for maximum clarity and readability at first glance. By defining the class Navigable and storing navigable items in a List<Navigable>, I thought it'd be much more readable, but that makes searches have a complexity of O(n). If I removed Navigable and used instead a Dictionary<Focusable, EventCallback<FocusOutEvent>>, searches complexity would go down to likely O(1), but I feel that won't be specially readable.
I know this is a quite silly question, but what do you think?