diff Python/ceval.c @ 32395:6bc6abba8659 legacy-trunk

Install two code generation optimizations that depend on NOP. Reduces the cost of "not" to almost zero.
author Raymond Hettinger <python@rcn.com>
date Mon, 21 Jun 2004 16:31:15 +0000
parents e5bc947c44ca
children 2f76e72ad190
line wrap: on
line diff
--- a/Python/ceval.c	Mon Jun 21 16:15:22 2004 +0000
+++ b/Python/ceval.c	Mon Jun 21 16:31:15 2004 +0000
@@ -849,6 +849,9 @@
 
 		/* case STOP_CODE: this is an error! */
 
+		case NOP:
+			goto fast_next_opcode;
+
 		case LOAD_FAST:
 			x = GETLOCAL(oparg);
 			if (x != NULL) {