Skip to content

quadratic latency for pasting big expression into REPL #58521

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

Open
adienes opened this issue May 24, 2025 · 1 comment
Open

quadratic latency for pasting big expression into REPL #58521

adienes opened this issue May 24, 2025 · 1 comment
Labels
latency Latency REPL Julia's REPL (Read Eval Print Loop)

Comments

@adienes
Copy link
Member

adienes commented May 24, 2025

str = "f(x, y, z) = 1"
for i in 1:2000
    str *= " + $(rand()) * $(rand(['x', 'y', 'z']))^$(rand())"
end
str |> clipboard

then pasting takes several seconds; this appears to scale quadratically with the length of the expression. reproduces on old versions too so this is not a recent regression

@adienes adienes added REPL Julia's REPL (Read Eval Print Loop) latency Latency labels May 24, 2025
@oscardssmith
Copy link
Member

This likely needs a profile to figure out where the time is being spent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
latency Latency REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

No branches or pull requests

2 participants