some native-code optimization