[protobuf] Serialize BufferedImage with Proto

2014-02-26 Thread jCoder
I was wondering if anyone had any success implementing this with a HashMapthat has a pointer to a BufferedImage. Example: Map thumb = new HashMapString, BufferedImage(); I am currently using Serialization with a custom writeObject() and readObject() to turn the BufferedImage into a byte[] and

Re: [protobuf] Serialize BufferedImage with Proto

2014-02-26 Thread Ilia Mirkin
On Tue, Feb 25, 2014 at 3:03 PM, jCoder jwch...@gmail.com wrote: I was wondering if anyone had any success implementing this with a HashMap that has a pointer to a BufferedImage. Example: Map thumb = new HashMapString, BufferedImage(); I am currently using Serialization with a custom

Re: [protobuf] Serialize BufferedImage with Proto

2014-02-26 Thread jCoder
I was able to change the BufferedImage to an ImageIcon which is Serializable. This along with using the FST Serialization class/jar I was able to improve the over all write time to about 10 seconds for a total write size of about 140 MB Which is still only 14MB/s write speed when I know I can

Re: [protobuf] Serialize BufferedImage with Proto

2014-02-26 Thread Ilia Mirkin
On Wed, Feb 26, 2014 at 10:13 PM, jCoder jwch...@gmail.com wrote: I was able to change the BufferedImage to an ImageIcon which is Serializable. This along with using the FST Serialization class/jar I was able to improve the over all write time to about 10 seconds for a total write size of

Re: [protobuf] Serialize BufferedImage with Proto

2014-02-26 Thread jCoder
I was afraid of that answer. I feel like sending the whole object to a byte[] would cost just as much if not more time then it currently takes. On Wednesday, February 26, 2014 10:22:20 PM UTC-5, Ilia Mirkin wrote: On Wed, Feb 26, 2014 at 10:13 PM, jCoder jwc...@gmail.com javascript: wrote:

Re: [protobuf] Serialize BufferedImage with Proto

2014-02-26 Thread Ilia Mirkin
What are the alternatives? One way or another, you have to create a representation of the object... enough to be able to create a new one on deserialization. On Wed, Feb 26, 2014 at 10:34 PM, jCoder jwch...@gmail.com wrote: I was afraid of that answer. I feel like sending the whole object to a