3 ms·
seriously, scanf in a loop, strdup, etc.? the reason C can be so fast is because a SKILLED developer can write very optimized code. The C and C++ examples are
by lionkor 6y ago
seriously, scanf in a loop, strdup, etc.?
the reason C can be so fast is because a SKILLED developer can write very optimized code. The C and C++ examples are not written well by any means.
All this article does is demonstrate that a less complex language is easier to write "good enough" code in.
- methyl 6y ago> All this article does is demonstrate that a less complex language is easier to write "good enough" code in. Is Rust less complex than C?
- ZoomZoomZoom 6y agoDepends on your point of view. Rust has more complexity hidden in layers underneath the one a developer is working with directly.
- mymatsubara 6y agoThe scanf and strdup are used in the unoptimized version, which I think is completely fair.