@ishanpage@programming.dev to Programming@programming.devEnglish • 2 years agoProgramming "with the grain"ishan.pagemessage-square4fedilinkarrow-up127
arrow-up127external-linkProgramming "with the grain"ishan.page@ishanpage@programming.dev to Programming@programming.devEnglish • 2 years agomessage-square4fedilink
minus-square@Hazzard@lemm.eelinkfedilinkEnglish4•2 years agoEh, the python one will probably perform better, because sum is probably written in native C under the hood.
minus-squarejaderolinkfedilinkEnglish3•2 years agoI’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.