damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.43k stars 800 forks source link

Lua sleep() is horribly inefficient #86

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:31

Just looking at 
http://code.google.com/p/android-scripting/source/browse/lua/ase/android/init.lu
a and noticed P.sleep(), which calls out to os.execute() to use the external 
'sleep' program. Why such an inefficient method, when you have socket loaded? 
Just alias to socket.sleep. 

Original issue reported on code.google.com by hyperhac...@gmail.com on 6 Jul 2012 at 1:34

Copied from original issue: damonkohler/android-scripting#638