From: Andi Gutmans Date: Fri, 28 Jan 2000 13:25:55 +0000 (+0000) Subject: - This makes the switch() statement twice as quick. Moving to enum X-Git-Tag: BEFORE_SAPIFICATION_FEB_10_2000~173 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f63373bb239f27dc2b29cdb6ace8297f30992a7;p=php - This makes the switch() statement twice as quick. Moving to enum might make this a general speed up for other platforms too --- diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 380ba61627..b0f20d73e5 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -2270,8 +2270,12 @@ send_by_ref: case ZEND_EXT_NOP: case ZEND_NOP: break; +#if (WINNT|WIN32) /* This makes the switch() statement twice as quick. Moving to enum + might make this a general speed up for other platforms too */ default: + __assume(0); break; +#endif } opline++; }