After r37297, access to the dynamic global object takes quadratic time, causing the recursion test to take a lot longer to run. The possible solutions are ensuring that no performance-sensitive callers access the dynamic global object, putting the dynamic global object in global data, or some combination of the two.
Created attachment 24108 [details] speed up dynamicGlobalObject to avoid O(N^2) behavior