This repository has been archived by the owner on Feb 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
Examples do not show pickling to and from a file #5
Comments
Hi there, thanks a lot for bringing this up. Apologies for the delay, been on the road nonstop since you reported this. At the time that you wrote this, we had no direct support for pickling to a file. But I've just added that support. I've not tested it with anything as big as 8gb, though the newly added support seems to work for modestly-sized objects. To give you a sample of what it looks like: case class Person(name: String, nums: Array[Int])
val p = Person("James", (1 to 200).toArray)
val file = new File("test.json")
val fileOut = new TextFileOutput(file)
p.pickleTo(fileOut)
fileOut.close() Could you let us know if that works for your use case? If not, if you run into any other issues, please don't hesitate to drop me a line, I'd be happy to help you support your use case. |
heathermiller
added a commit
that referenced
this issue
Jul 12, 2013
heathermiller
added a commit
that referenced
this issue
Aug 2, 2013
Hmmm, what about binary formats? I couldn't find |
heathermiller
added a commit
that referenced
this issue
Feb 5, 2015
heathermiller
added a commit
that referenced
this issue
Feb 5, 2015
phaller
pushed a commit
to phaller/pickling
that referenced
this issue
Jul 27, 2015
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'd like to pickle an object which is in-memory resident at over 8Gb. I can't pickle this to a string - is there an interface to pickle directly to a file? If so, could we show it in the README?
The text was updated successfully, but these errors were encountered: