Speeding up python through profiling (opens in new tab)
Python is a shockingly slow language. A test on a raspberry pi of simply “turn this pin on and off as fast as you can” gave the results below. System Library Speed Shell /proc/mem access 2.8 kHz Shell / gpio utility WiringPi gpio utility 40 Hz Python RPI.GPIO 70 kHz Python wiringPi2 bindings 28 kHz […]
Read the original article