3 ms·
> My experience is the opposite. Not two million lines - just a few tens of thousands, but still. But that's the whole point. I could probably write a C++ prog
by pron 13y ago
> My experience is the opposite. Not two million lines - just a few tens of thousands, but still.
But that's the whole point. I could probably write a C++ program of that size that beats a Java program of that size, provided that they're single threaded. But programs of that size are usually written by a single developer or a very small team. Many programs aren't that small.
But even at this size, unless the problem is embarrassingly parallel, a multi-threaded Java program would often perform better, mostly due to concurrent data structures that require (or greatly benefit from) GC.