Selecting rhino objects in Grasshopper is very slow

Selecting rhino objects in Grasshopper is very slow.,I found this link:Objects selection via code is much slower than via viewport

Use for loop to find. 1000 points, 7736

Use the doc.Objects.Select method. 1000 points, 7543

Used in rhinopython.

import rhinoscriptsyntax as rs
rs.SelectObjects()

It will be very fast, and it will be very slow to use in Ghpython.
Why is this? Is there any way to improve the performance? Thanks

Select_rhino_objects.3dm (240.0 KB) Select_rhino_objects.gh (69.5 KB)

Close the properties panel, Several times faster://discourse.mcneel.com/t/properties-window-slowing-down-object-selection/7737/5.

Is there any other solution?