ParentFull threadMatheus28·Your python code allocates an array and inverts it every function call.The C++ code has no overhead and is equivalent to a compile time transformation.View on HN