and even this line
std::set<WorldObject*> worldObjects(worldObjectsInRange(worldObject, position));
is much worse with sets than the same with unordered_sets.