Live data from Hacker News

Building Memory-efficient Java Applications

domino.research.ibm.com

1–10 of 16 posts

Re: Building Memory-efficient Java Applications

#3
Very nice presentation. However much of this can be actually discovered and felt first hand just by playing with profilers that support memory profiling (such as yourkit[1]).

After a few hours playing with it, you will never forget the precious lessons on this presentation.

[1] http://www.yourkit.com/

Re: Building Memory-efficient Java Applications

#7
post #6

This is probably an 'apple and oranges' type of question, but I haven't used Erlang, nor Java to build large applications. Does anyone know how Erlang compares to Java in regards to memory usage/performance?

Per-object overhead is generally more reasonable.

Re: Building Memory-efficient Java Applications

#8
post #6

This is probably an 'apple and oranges' type of question, but I haven't used Erlang, nor Java to build large applications. Does anyone know how Erlang compares to Java in regards to memory usage/performance?

You can have a whole Erlang process for a price of (roughly) 100 Java objects.

Re: Building Memory-efficient Java Applications

#10
post #6

This is probably an 'apple and oranges' type of question, but I haven't used Erlang, nor Java to build large applications. Does anyone know how Erlang compares to Java in regards to memory usage/performance?

Per object overhead in functional languages is usually lower since polymorphism is handled at the function level rather than the data level. You don't have to store class pointers etc, just the raw data and probably a type tag.

I can't find a reference for erlang's representation but I believe it has only a little more overhead than ocaml which is described here - http://rwmj.wordpress.com/2009/08/04/ocaml-internals/

Post reply on HN