endo
endo copied to clipboard
Consider optimizing bestEffortStringify
Recent performance analysis shows a lot of time spent in assert.quote, and I wonder if there's misattribution of bestEffortStringify, which can probably be sped up a great deal by bypassing JSON.stringify.
I suspect that a lot of this is due to the old assert pattern. I'd wait and re-measure after we're cleanly switched to the || Fail... assert style.
Unless of course we have measurements that indicate that bestEffortStringify is called a lot for some purpose other than assertions.