performance improvement for lua runtime on Run mode