Comment Re:Wrong title (Score 1) 486
It's slower in languages with automatic memory management, or with a VM, which is no surprise.
It would be much faster than disk if you wrote the time critical parts in a language designed for, you know, speed...
In this case it's slower because they are not comparing apples to apples. For memory they repeatedly concatenate strings together, which reallocates the memory and copies the string every time. For the disk they allocate the whole file at once and then just stream the data. It would have been a much better test if they had allocated a memory buffer for the string and streamed the data in to it the same way as a the disk.