perf: improve mapObjectValues by ~50%(#18922)
MergedBenchmarks
Failing
client generation 100 models with relationsRegression
packages/client/src/__tests__/benchmarks/lots-of-relations/lots-of-relations.bench.ts::typescript::client generation 100 models with relationsPassing
client generation ~50 Models packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::client generation ~50 Modelstypescript compilation ~50 Models packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::typescript compilation ~50 ModelsCommits
Click on a commit to change the comparison rangeperf(client): Replace `chalk` with `kleur/color` (#18900)
* perf(client): Replace `chalk` with `kleur/color`
Signgicantly reduces bundle size (from 280K to 255K) and
improves `require(runtime)` performance by 5-10ms.
* Replace chalk in CLI
* Remove chalk from migrate
* Remove chalk from top-level scripts
* Update packages/client/src/runtime/utils/createErrorMessageWithContext.ts
Co-authored-by: Alexey Orlenko <alex@aqrln.net>
* Make all binary engine labels bold
---------
Co-authored-by: Alexey Orlenko <alex@aqrln.net>base7 months ago by SevInf perf: improve mapObjectValues by ~50% Copyright © 2023 CodSpeed Technology SAS. All rights reserved.