assertj / assertj-swing

Fluent assertions for Swing apps
Other
109 stars 52 forks source link

Increase speed of finding components in large swing hierarchy. #261

Open SeanBurnsUK opened 3 years ago

SeanBurnsUK commented 3 years ago

We have a large swing hierarchy with many thousands of components.

The find is VERY slow because while doing a depth first search of the hierarchy all recursive loops and match checks are queued for the swing thread and block until done.

This change causes the entire search to be done with just a single blocking invocation on the swing thread. This significantly improves the time needed to do a search on the hierarchy.

henri-tremblay commented 3 years ago

Sounds like a sensible thing to do.