Timeline for Serializable, cloneable and memory use in Java
Current License: CC BY-SA 3.0
Post Revisions
14 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 29, 2021 at 15:00 | history | edited | trincot |
edited tags
|
|
| Apr 30, 2011 at 16:17 | history | edited | Peter Mortensen | CC BY-SA 3.0 |
Changed to sentence casing for the title. Reformatted the sample source code.
|
| Apr 23, 2011 at 5:26 | vote | accept | fiacobelli | ||
| Apr 21, 2011 at 15:12 | answer | added | fiacobelli | timeline score: 4 | |
| Apr 19, 2011 at 21:47 | history | edited | fiacobelli | CC BY-SA 3.0 |
added one subclass
|
| Apr 19, 2011 at 21:41 | history | edited | fiacobelli | CC BY-SA 3.0 |
added code, removed flawed experiment
|
| Apr 19, 2011 at 21:38 | comment | added | fiacobelli | Ok. So, I couldn't reproduce my earlier results about implementing the Serializable interface, so I will cross out that part of the post. It may have been JVM mixup with tijmp. However, it still stands that for some reason tjimp still reports char[] coming from Serializable and Cloneable that grow without control. This happens even after I got rid of the HashMap altogether and used double[][] and String[] objects. My class is not implementing Serializable per se, but tijmp reports that something is, and is using a lot of memory. Any help is appreciated. | |
| Apr 19, 2011 at 17:54 | answer | added | Dave Costa | timeline score: 5 | |
| Apr 19, 2011 at 17:54 | comment | added | Edwin Dalorzo | Let me see if I understand your statement up there. You are saying that by declaring a class Serializable the size occupied by instances of it is bigger than if it were transient? | |
| Apr 19, 2011 at 17:47 | comment | added | Spike Gronim | Please post the tests that show that Serializable increases memory footprint. If you could post the code that shows much RAM your Map<String,double[]> is using that would help too. | |
| Apr 19, 2011 at 17:46 | comment | added | axtavt | Can you show some code samples? | |
| Apr 19, 2011 at 17:42 | history | edited | fiacobelli | CC BY-SA 3.0 |
clarify
|
| Apr 19, 2011 at 17:39 | history | edited | heisenberg | CC BY-SA 3.0 |
spelling
|
| Apr 19, 2011 at 17:37 | history | asked | fiacobelli | CC BY-SA 3.0 |