Click here to Skip to main content
15,896,726 members
Home / Discussions / Java
   

Java

 
QuestionHow to debug MSJVM in Eclipse Pin
utnqbao6-Oct-08 0:50
professionalutnqbao6-Oct-08 0:50 
AnswerRe: How to debug MSJVM in Eclipse Pin
toxcct6-Oct-08 1:37
toxcct6-Oct-08 1:37 
GeneralRe: How to debug MSJVM in Eclipse Pin
utnqbao6-Oct-08 16:34
professionalutnqbao6-Oct-08 16:34 
GeneralRe: How to debug MSJVM in Eclipse Pin
utnqbao6-Oct-08 17:32
professionalutnqbao6-Oct-08 17:32 
QuestionDraw graph (networks) Pin
ventomito4-Oct-08 11:23
ventomito4-Oct-08 11:23 
AnswerRe: Draw graph (networks) Pin
douss7-Oct-08 23:38
douss7-Oct-08 23:38 
GeneralRe: Draw graph (networks) Pin
ventomito10-Oct-08 23:32
ventomito10-Oct-08 23:32 
Generaljava.util.List memory usage Pin
thrasher08154-Oct-08 10:55
thrasher08154-Oct-08 10:55 
I have a question (or more an impulse for discussion) regarding an implementation of Mergesort with a generic list.

How is a list (let's say an ArrayList) object stored in the memory? How are the list's values stored? I would assume that each list item is a pointer to a value stored in memory, since duplicate objects are possible. How much space is this pointer using in memory?

If I stay with my Mergesort example:
I have a list of n integer values, which means n values of 16 bit stored in the memory, along with n pointers + the "overhead" for the list.
If i split the list in the first step, i have the same integer values in the memory, but now 2n pointers + the "overhead" of 3 lists...

So for implementing an out-of-place sorting like mergesort, it would be very relevant to know how long pointers are and how big the memory overhead of a list is to estimate the total memory use.

Any suggestions, hints, recommendations?
Robert
Questionhow to close acceptandopen for streamconncetionnotifier Pin
manju23reddy2-Oct-08 18:16
manju23reddy2-Oct-08 18:16 
Questiontext twist game project help...... Pin
reanne_8830-Sep-08 21:20
reanne_8830-Sep-08 21:20 
AnswerRe: text twist game project help...... Pin
toxcct30-Sep-08 22:54
toxcct30-Sep-08 22:54 
GeneralRe: text twist game project help...... Pin
reanne_881-Oct-08 4:53
reanne_881-Oct-08 4:53 
Questionhi Pin
my data27-Sep-08 22:06
my data27-Sep-08 22:06 
AnswerRe: hi Pin
toxcct28-Sep-08 21:43
toxcct28-Sep-08 21:43 
QuestionKoch Snowflake Pin
vultron_322926-Sep-08 13:10
vultron_322926-Sep-08 13:10 
AnswerRe: Koch Snowflake Pin
douss8-Oct-08 4:40
douss8-Oct-08 4:40 
Questionjava-linkedlist Pin
Bavirti25-Sep-08 1:00
Bavirti25-Sep-08 1:00 
AnswerRe: java-linkedlist Pin
toxcct25-Sep-08 2:19
toxcct25-Sep-08 2:19 
GeneralRe: java-linkedlist [modified] Pin
Bavirti25-Sep-08 2:46
Bavirti25-Sep-08 2:46 
GeneralRe: java-linkedlist Pin
toxcct25-Sep-08 2:49
toxcct25-Sep-08 2:49 
QuestionEquivalent to .net usercontrol Pin
Russell Jones22-Sep-08 22:33
Russell Jones22-Sep-08 22:33 
AnswerRe: Equivalent to .net usercontrol Pin
Russell Jones22-Sep-08 23:10
Russell Jones22-Sep-08 23:10 
QuestionOdd String/Vector behavior [solved] Pin
David Crow19-Sep-08 5:55
David Crow19-Sep-08 5:55 
AnswerRe: Odd String/Vector behavior Pin
toxcct19-Sep-08 7:07
toxcct19-Sep-08 7:07 
GeneralRe: Odd String/Vector behavior Pin
David Crow19-Sep-08 7:15
David Crow19-Sep-08 7:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.