-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: $if
inside with
is { [x: string]: any }[]
.
#793
fix: $if
inside with
is { [x: string]: any }[]
.
#793
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
$if
inside with
is any
.$if
inside with
is { [x: string]: any }
.
$if
inside with
is { [x: string]: any }
.$if
inside with
is { [x: string]: any }[]
.
I haven't told you this yet, but I spent a couple of days trying to understand the type performance issues in Kysely by profiling the typescript compiler. I found very serious issues like just checking if a These type comparisons only get done if the user writes functions that take a specific type as an argument, or if the user uses explicit types. Most common Kysely code is not affected. Each method in I need to setup a performance test suite so that we can keep track of this each time we add/change something. Including this PR. I think we need to start seriously thinking what we can add to Kysely or it'll become unusable very soon. |
Wow, great stuff. We sure need these benchmarks in place! Was thinking about testing against multiple typescript versions too, at least the typings tests, so we're aware of what breaks for what version in latest 5 or so. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Checked this and it didn't slow things down.
2fa1979
to
10e282b
Compare
closes #785.
This is voodoo, but works. Nothing else I tried did - the result of the inner
$if
was always{ [x: string]: any }[]
.