gh-107674: Improve performance of sys.settrace
#114986
+64
−53
Merged