packages/client/src/__tests__/benchmarks/lots-of-relations/lots-of-relations.bench.ts::typescript::client generation 100 models with relations
+52%
61.3 s
40.2 s
Commits
Click on a commit to change the comparison range
chore: Remove unused variables and enable no-unused-vars rule (#18584)
* chore: Remove unused variables and enable no-unused-vars rule
Enables `@typesctipt-eslint/no-unused-vars` and fixes all violations.
There are a couple of exceptions to the rule:
1. Spreads are ignored, making it possible to omit a property with
object spread operator, i.e. this code valid:
```ts
const { propToOmit, ...rest } = someObject
```
2. In some cases, we want to have a function argument that won't be used
in the function body. Main use-case for this is TS inference tests.
In that case, argument may be prefixed with `_` and the rule won't
trigger.
* Update snapshots
* Update more snapshots
* Add comments
base
906d265
8 months ago by SevInf
-33%
perf(get-platform): Optimize some of the platform detection routines
1. Detect node support using `process.arch` rather than calling `getos`,
that will re-do openssl search
2. Look for openssl lib using readdir rather than launching child
process and quit on the first found library, rather then continuing
executing commands.
Together, those changes improve loading peroformance by 10-20ms on orm
comparison benchmarks.