(IN-64542) Selecting PlayableDirector causes 5s editor freeze

Selecting a gameObject that has a PlayableDirector, where the PlayableDirector points to a PlayableAsset that contains a non-trivial amount of tracks/clips, causes the editor to become unresponsive for several seconds.

Actual
The profiler shows that selecting the “Animation Timeline” gameObject took several seconds and allocated several hundred megabytes of memory.

Expected
Selecting the “Animation Timeline” takes less than 500ms to become visible in the Inspector.

QA was able to reproduce the issue. Thank you!

PS: If somebody could remove the spam from the issue tracker item I posted, that would be nice.