0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-26 00:19:07 -05:00
penpot/common
Andrey Antukh 827c2140b7 ♻️ Refactor error reporting and logging context formatting
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.
2022-02-10 15:12:35 +01:00
..
dev ♻️ Ensure a correct usage of concat/into operations. 2021-12-03 14:52:40 +01:00
scripts 📎 Add scripts/repl to common. 2021-11-25 13:24:40 +01:00
src/app/common ♻️ Refactor error reporting and logging context formatting 2022-02-10 15:12:35 +01:00
test/app/common 📎 Fix common tests. 2021-12-31 13:46:13 +01:00
deps.edn ⬆️ Update dependencies. 2022-01-17 13:09:15 +01:00
package.json ⬆️ Update dependencies. 2022-01-17 13:09:15 +01:00
shadow-cljs.edn 📎 Add performance related helpers. 2022-01-14 10:54:57 +01:00
yarn.lock ⬆️ Update dependencies. 2022-01-17 13:09:15 +01:00