-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Excessive inference time for functions with many kwargs #44322
Comments
Profiling suggests this is another instance of #43999 |
JeffBezanson
added a commit
that referenced
this issue
Feb 24, 2022
JeffBezanson
added a commit
that referenced
this issue
Mar 2, 2022
Also use builtins to cut some time inferring into methods. helps #44322
Keno
pushed a commit
that referenced
this issue
Mar 3, 2022
Also use builtins to cut some time inferring into methods. helps #44322
Keno
pushed a commit
that referenced
this issue
Mar 3, 2022
Also use builtins to cut some time inferring into methods. helps #44322
This is significantly faster on master. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a function with thousands of keyword arguments of which a few hundred are used at any given call site. Inference really doesn't like this and takes several minutes to infer the call. Cursory debugging shows most of the time being spent in
haskey(::NamedTuple{<lots of fields here>})
. Here is a very minimal reduced example that already shows several second compile times while being trivial (my actual code has non-trivial defaults, etc, which I think makes up the difference):The text was updated successfully, but these errors were encountered: