Replace a linear search through all objects for every single selection result with a Map from select ID to object base. This makes the runtime linear instead of quadratic, resulting in a 100x performance improvement from 6s to 60ms when selecting about half of 60k objects in a scene. Pull Request: https://projects.blender.org/blender/blender/pulls/137832