[Python-checkins] python/dist/src/Python ceval.c,2.382,2.383

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Fri Mar 12 11:33:20 EST 2004


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24609
Modified Files:
	ceval.c 
Log Message:
LIST_APPEND is predicably followed by JUMP_ABSOLUTE.
Reduces loop overhead by an additional 10%.
Index: ceval.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/ceval.c,v
retrieving revision 2.382
retrieving revision 2.383
diff -C2 -d -r2.382 -r2.383
*** ceval.c	12 Mar 2004 09:12:22 -0000	2.382
--- ceval.c	12 Mar 2004 16:33:17 -0000	2.383
***************
*** 1232,1236 ****
 			Py_DECREF(v);
 			Py_DECREF(w);
! 			if (err == 0) continue;
 			break;
 
--- 1232,1239 ----
 			Py_DECREF(v);
 			Py_DECREF(w);
! 			if (err == 0) {
! 				PREDICT(JUMP_ABSOLUTE);
! 				continue;
! 			}
 			break;
 
***************
*** 2062,2065 ****
--- 2065,2069 ----
 			continue;
 
+ 		PREDICTED_WITH_ARG(JUMP_ABSOLUTE);
 		case JUMP_ABSOLUTE:
 			JUMPTO(oparg);


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /