minus-squareKacarott@aussie.zonetoTechnology@lemmy.world•Python Performance: Why 'if not list' is 2x Faster Than Using len()linkfedilinkEnglisharrow-up2·3 days agoNo, len is a constant time operation, at least in most cases I believe. linkfedilink
minus-squareKacarott@aussie.zonetoAsk Lemmy@lemmy.world•Why is Germany so prevalent on Lemmy?linkfedilinkarrow-up22·3 days agoIn my experience, the mental effort spent trying to understand the German in a meme makes the comedic payout better linkfedilink
No,
len
is a constant time operation, at least in most cases I believe.