How to speed up file writing from fipp?

Previous conversation:

The problem was likely with-out-str is taking all the data in the memory, which made it slow to emit the code to file. system.

Then I created an example in ClojureScript compiled with shadow-cljs, here’s details:

But I can’t figure out what’s wrong here. How to look into ClojureScript deep stacktrace?