Comment on Python Performance: Why 'if not list' is 2x Faster Than Using len()

<- View Parent
Randelung@lemmy.world ⁨1⁩ ⁨week⁩ ago

It comes down to the question “Is YOUR C++ code faster than Python?” (and of course the reverse).

I’ve built a SCADA from scratch and performance requirements are low to begin with, seeing as it’s all network bound and real world objects take time to react, but I’m finding everything is very timely.

A colleague used SQLAlchemy for a similar task and got abysmal performance. No wonder, it’s constantly querying the DB for single results.

source
Sort:hotnewtop