Scripts run slowly in device and emulator, is there any way to run it fast?

Scripts run slowly in device and emulator, is there any way to run it fast?