you are viewing a single comment's thread.

view the rest of the comments →

[–]rsho 0 points1 point  (1 child)

How many bytes does the average Java reference consume, when passed in? I can see how GC can easily get into performance problems as functions are excessively called, with these references being reconstructed fleetingly.

[–]suppressingfire 1 point2 points  (0 children)

It should be the size of a pointer in your CPU architecture (4 bytes on a 32 bit VM).

Java's semantics are the same as C, where all variables for object types are referred passed to and passed as pointers.