Slashdot Mirror


Java Urban Performance Legends

An anonymous reader writes "Programmers agonize over whether to allocate on the stack or on the heap. Some people think garbage collection will never be as efficient as direct memory management, and others feel it is easier to clean up a mess in one big batch than to pick up individual pieces of dust throughout the day. This article pokes some holes in the oft-repeated performance myth of slow allocation in JVMs."

5 of 846 comments (clear)

  1. Nonsense by hedge_death_shootout · · Score: 5, Funny

    These java urban performance legends are rubbish - java is highly performant in a rural or urban setting.

  2. Java Urban Performance Legend #1 by GillBates0 · · Score: 5, Funny

    JVM memory allocation isn't "SLOW". It's just pleasantly unhurried.

    --
    An Indian-American Hindu committed to non-violent thought/speech/action alarmed by the global explosion of radical Islam
  3. First! by Anonymous Coward · · Score: 5, Funny

    First post here from my Java workstation. Take that!

  4. Re:MOD THIS UP!!!!!! +9 FUNNY by wheany · · Score: 4, Funny

    Oh yeah! Now that you mention it, it really is funny! You see, the article talks about how Java is not as slow as is generally believed, but then the grandparent says that he posted the message using Java! That's not funny as such, but it is when you consider that it's supposedly the first post! And it's funny to think that he might have actually been the first to post the message, but since he was using Java, its slowness caused the message to be actually posted waaay late!

    Too funny!

  5. Re:Robomaid by halleluja · · Score: 4, Funny
    The fact is that Java programs include more intelligence about programming from the compiler and the JVM.
    It is particularly sad the Visual PnP-generation of today cannot identify the merits of GOTO's and self-modifying code.

    I have never had any memory leaks, just by including the following code snippet:

    /* Distributed under GPL */
    #include <stdlib.h>

    static void* repo = malloc(100000000);

    int main(int argc, char** argv)
    {
    /* do stuff, just increment & cast *repo when I need to utilize free memory. */
    free(repo);
    }