[Python] Optimize what needs optimizing?
ปกติแล้ว เวลาผมเขียนโปรแกรมจะถือคตินี้มาตลอด นั่นคือ Make it done, make it right, and then make it fast. blog นี้จะมาบอกว่า เราจะ opimize โปรแกรมที่เขียนด้วยภาษา python ได้อย่างไรบ้าง อย่างแรก ให้ติดตั้ง Python profiler ก่อน คลิก เพ ...
Read More[Python] Identify the bottlenecks by Python profilers
Python Profiler package เป็น package ไว้สำหรับ วิเคราะห์ประสิทธิภาพของโปรแกรมที่เขียนด้วยภาษา python เพื่อหา bottleneck หรือปัญหาคอขวดของโปรแกรมของเราว่าอยู่ตรงไหน Minimum-requirement: Python 2.6 or later [use profiler and pstats package] ถ้าเครื่องไหนไ ...
Read More