I did some more extensive tests.
Unfortunately I discovered that the slowness is not determined only by the group of selection, but also from the code that handles it later.
With your advice I managed to speed up the creation of group selection.
I also tried the way of the List of "Entity Names".
But now I have to check out the rest of the code.
There is a strange thing though ... to test the speed of the code I inserted between rows, some (princ "\nX"), where "X" is a sequential number.
At a certain point in the code I have inserted the following two lines, one after the other
(princ "\n5")
(princ "\n6")
The number 5 appears immediately, while the number 6 has a delay of about 1 ".
This is very strange if I consider that between (princ "\n5") and (princ "\n6"), there is no code!