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

Pasting text can be slow, can stall repl entirely #274

Closed
andrewconner opened this Issue Nov 24, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@andrewconner

andrewconner commented Nov 24, 2015

Pasting text can be very slow. For small amounts, pasting is near instant. However, for several lines, it can take well over 10s. I've managed to stall the process entirely with a paste of <20kb of Scala code.

I haven't been able to isolate if the kind of text really matters, but here are some data points:

  1. First chapter of Alice in Wonderland (11kb) into a multiline string takes over 10s. Gif.
  2. <1kb Scala object (HofstadterConway.scala) takes over 17s. Gif

Ammonite Repl 0.5.0
Scala 2.11.7
Java 1.8.0_25
2.7 GHz Intel Core i7 MacBook Pro, 16gb RAM

@lihaoyi lihaoyi closed this in 8a126da Nov 28, 2015

@andrewconner

This comment has been minimized.

andrewconner commented Dec 8, 2015

Verified, fixed in 0.5.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment