enhanced script generation runtime performance