mirror of
https://github.com/penpot/penpot.git
synced 2025-01-26 00:19:07 -05:00
827c2140b7
The prev approach uses clojure.pprint without any limit extensivelly for format error context data and all this is done on the calling thread. The clojure.pprint seems very inneficient in cpu and memory usage on pprinting large data structures. This is improved in the following way: - All formatting and pretty printing is moved to logging thread, reducing unnecesary blocking and load on jetty http threads. - Replace the clojure.pprint with fipp.edn that looks considerably faster than the first one. - Add some safe limits on pretty printer for strip printing some data when the data structure is very large, very deep or both. |
||
---|---|---|
.. | ||
dev | ||
scripts | ||
src/app/common | ||
test/app/common | ||
deps.edn | ||
package.json | ||
shadow-cljs.edn | ||
yarn.lock |