3 ms·
Note that the different readers in this discussion point out that the whole "magic" of article writer's Java implementation being so much faster is most probabl
by acqq 13y ago
Note that the different readers in this discussion point out that the whole "magic" of article writer's Java implementation being so much faster is most probably the only thing that can run in parallel when you write the single-threaded program: the JVM's garbage collector.
Which in turns means that the most of the "computation" performed is actually the creation and collection of the always new objects, which people who ignore the lower-level aspects of their programs consider being "zero-cost." Which is not.