cubicweb #1626708 optimisation: avoid needlessly raising NoSelectableObject [resolved]

vregistry._select_best is needlessly instanciating NoSelectableObject

in large selections, this incurred a non negligible cost (add_relations with 2000 inlined relations runs 7% faster with this patch)

prioritynormal
typeenhancement
done in3.13.0
load0.500
load left0.000
closed by#771f594c12a2 [vreg] vregistry._select_best was needlessly instanciating NoSelectableObject (closes #1626708)