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

Worksheet keeps doing work after the output cut-off limit is reached #101

Open
dotta opened this issue Oct 22, 2012 · 0 comments
Open

Worksheet keeps doing work after the output cut-off limit is reached #101

dotta opened this issue Oct 22, 2012 · 0 comments

Comments

@dotta
Copy link
Member

dotta commented Oct 22, 2012

I just noticed that the worksheet may be keeping wasting cycles even if the output cut-off limit has been reached. This should be avoided.

For instance, take the following worksheet source:

object asd {

lazy val fibs = {
  def f(a:Int,b:Int):Stream[Int] = a #:: f(b,a+b)
  f(0,1)
}                                                 //> fibs  : Stream[Int] = <lazy>


 fibs.drop(100).foreach(println)
}

And you will notice that the right scroll keeps being pushed to the bottom...

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

No branches or pull requests

1 participant