Skip to content
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

Latency regression on first error #56861

Open
jakobnissen opened this issue Dec 18, 2024 · 0 comments
Open

Latency regression on first error #56861

jakobnissen opened this issue Dec 18, 2024 · 0 comments
Labels
compiler:latency Compiler latency regression 1.11 Regression in the 1.11 release

Comments

@jakobnissen
Copy link
Contributor

jakobnissen commented Dec 18, 2024

The following shell commands triggers a MethodError in Julia and times how long it takes to display it: time julia --startup=no -e '1 + []'

Here are the timings on some versions of Julia (mean of three runs):

  • 1.10.7: 0.41 s
  • 1.11.2: 2.32 s
  • Today's master: 1.29 s

Time to first error is, of course, not crucial. But it does make the REPL feel more choppy and laggy.
Using --trace-compile shows 33 uncompiled signatures, but most of them are abstract, so it may possibly be an issue with inference and/or lack of @nospecialize for error-related methods.

@jakobnissen jakobnissen added compiler:latency Compiler latency regression 1.11 Regression in the 1.11 release labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:latency Compiler latency regression 1.11 Regression in the 1.11 release
Projects
None yet
Development

No branches or pull requests

1 participant