We routinely have to do grouping when making our illustations in Adobe Illustrator. That can be over several thousand objects, grouped into bunches of only 50 or less.
It would be much more resource-efficient to have a module that can do the grouping of connected or overlapping objekts on the whole page automatically.