ishanpage to ProgrammingEnglish · 1 年前Programming "with the grain"ishan.pageexternal-linkmessage-square4fedilinkarrow-up128arrow-down11
arrow-up127arrow-down1external-linkProgramming "with the grain"ishan.pageishanpage to ProgrammingEnglish · 1 年前message-square4fedilink
minus-squareHazzard@lemm.eelinkfedilinkEnglisharrow-up4·1 年前Eh, the python one will probably perform better, because sum is probably written in native C under the hood.
minus-squarejaderolinkfedilinkEnglisharrow-up3·1 年前I’ve yet to find a language where “doing it yourself” has higher performance than calling the built-in or library function. There are edge cases, but rarely enough to be bothered about.
Eh, the python one will probably perform better, because
sum
is probably written in native C under the hood.I’ve yet to find a language where “doing it yourself” has higher performance than calling the built-in or library function. There are edge cases, but rarely enough to be bothered about.