Turn on MICROPY_OPT_COMPUTED_GOTO for 5x CPU-bound speedup

This commit is contained in:
Dan Halbert 2019-06-11 12:43:48 -04:00
parent c85e111675
commit ea760c042b
2 changed files with 3 additions and 2 deletions

View File

@ -72,6 +72,7 @@
#define MICROPY_KBD_EXCEPTION (1)
#define MICROPY_MEM_STATS (0)
#define MICROPY_NONSTANDARD_TYPECODES (0)
#define MICROPY_OPT_COMPUTED_GOTO (1)
#define MICROPY_PERSISTENT_CODE_LOAD (1)
#define MICROPY_PY_ARRAY (1)

View File

@ -24,7 +24,7 @@
* THE SOFTWARE.
*/
#if __clang__
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winitializer-overrides"
#endif // __clang__
@ -113,6 +113,6 @@ static const void *const entry_table[256] = {
[MP_BC_BINARY_OP_MULTI ... MP_BC_BINARY_OP_MULTI + MP_BINARY_OP_NUM_BYTECODE - 1] = &&entry_MP_BC_BINARY_OP_MULTI,
};
#if __clang__
#ifdef __clang__
#pragma clang diagnostic pop
#endif // __clang__