BlogDocs

perf(client): Properly tree-shake `arg` and `lz-string`(#19050)

Merged
Merging
integration/misc-tree-shaking
(
b398ecb
) into
main
(
0064ee3
)
+34%
IMPROVEMENTS
2
REGRESSIONS
0
UNTOUCHED
1
NEW
0
DROPPED
0
IGNORED
0

Benchmarks

Improved

client generation 100 models with relations
packages/client/src/__tests__/benchmarks/lots-of-relations/lots-of-relations.bench.ts::typescript::client generation 100 models with relations
+34%
10.4 s
7.8 s
client generation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::client generation ~50 Models
+26%
1.4 s
1.1 s

Passed

typescript compilation ~50 Models
packages/client/src/__tests__/benchmarks/huge-schema/huge-schema.bench.ts::typescript::typescript compilation ~50 Models
-3%
12.9 ms
13.3 ms

Commits

Click on a commit to change the comparison range
base
main
0064ee3
-6%
perf(client): Properly tree-shake some `arg` and `lz-string` `arg` is not used by any of the runtime dependencies but was not tree-shaked because it is not marked as side effects free and some `internals` helpers required it. `lz-string` is not used by any runtime except edge/data-proxy but was still bundled. That saves around 8KB from a bundle size, but unfortinately has no visible effect on performance. Close prisma/client-plannning#342
0933c8d
1 year ago
by SevInf
+40%
perf(client): Properly tree-shake some `arg` and `lz-string` `arg` is not used by any of the runtime dependencies but was not tree-shaked because it is not marked as side effects free and some `internals` helpers required it. `lz-string` is not used by any runtime except edge/data-proxy but was still bundled. That saves around 8KB from a bundle size, but unfortinately has no visible effect on performance. Close prisma/client-plannning#342
b398ecb
1 year ago
by SevInf
ResourcesHomePricingDocsBlogGitHubChangelog
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.