4 ms·
From what i know the code was quite simple and even trivial, using existing java libraries as much as possible. The fact is that using corresponding cpp librari
by raphinou 13y ago
From what i know the code was quite simple and even trivial, using existing java libraries as much as possible. The fact is that using corresponding cpp libraries let him get what he needed with much less fuss. I do not know why the java version was so inefficient and used all memory,it might be due to one ofnthe librariez, but this is illustrating an example where cpp was relevant , which was the point of my comment.
- RyanZAG 13y agoAnd if he now rewrote the code in Scala using even better domain knowledge and it ran in 0.1 seconds, would this be proof to you that C++ isn't relevant after all? The point of my comment is that your basis is flawed. The apples to chimpanzees reasoning you are using is not valid.
- raphinou 13y agoI think you missed the point there was no domain knowledge advantage in the second version.