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

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

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

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

andrewconner opened this issue Nov 24, 2015 · 1 comment

Comments

@andrewconner
Copy link

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

@andrewconner
Copy link
Author

Verified, fixed in 0.5.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant