結果 : how to optimize performance in python