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

CsvOutput prevents Stream GC #24

Closed
marklister opened this issue Nov 7, 2014 · 3 comments
Closed

CsvOutput prevents Stream GC #24

marklister opened this issue Nov 7, 2014 · 3 comments
Labels

Comments

@marklister
Copy link
Owner

See #21.

Test case:

package com.github.marklister.collections.io
import Utils._

object MemTest {

  def main (args:Array[String]):Unit={
    println("Attach monitor, press enter")
    readLine()
    var f = new java.io.FileWriter("/dev/null")
    def st= Stream.continually((1,2))
    st.take(10000000).writeCsv(f)
    f.close
    f=null
    System.gc
  }
}

Results:
heap_usage

@marklister
Copy link
Owner Author

ffef548 fixes.
heap_after

Yes, i know the times are out of order -- I went back to profile the bug after I'd fixed it!

@marklister
Copy link
Owner Author

@ms-tg, hopefully v1.1.1 will work for you. I'm not going to be available much for the next few weeks. Good luck!

@marklister marklister added the bug label Nov 7, 2014
@ms-tg
Copy link

ms-tg commented Nov 7, 2014

@marklister thank you so much, fix looks great, we'll upgrade.

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

No branches or pull requests

2 participants