Re: com php-src: Update zend_accelerator_hash.c: ext/opcache/zend_accelerator_hash.c

From: Date: Sun, 01 Feb 2015 10:49:21 +0000
Subject: Re: com php-src: Update zend_accelerator_hash.c: ext/opcache/zend_accelerator_hash.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84549@lists.php.net to get a copy of this message
You may want to declare that variable as const to avoid copying at run-time. Nuno -----Original Message----- From: Stanislav Malyshev Sent: Sunday, December 21, 2014 2:22 PM Subject: [PHP-CVS] com php-src: Update zend_accelerator_hash.c: ext/opcache/zend_accelerator_hash.c
Commit:    bdb2d490715c70b413e0c8a4eaebab78407a46b5
Author:    Adrian <kontakt@adrianslowik.pl>         Sun, 21 Dec 2014 15:22:49 +0100
Parents: 3141922321b000d6d9b186e781a6849c18324f21 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=bdb2d490715c70b413e0c8a4eaebab78407a46b5 Log: Update zend_accelerator_hash.c Changed paths: M ext/opcache/zend_accelerator_hash.c Diff: diff --git a/ext/opcache/zend_accelerator_hash.c b/ext/opcache/zend_accelerator_hash.c index c399d89..6717922 100644 --- a/ext/opcache/zend_accelerator_hash.c +++ b/ext/opcache/zend_accelerator_hash.c @@ -26,7 +26,7 @@ /* Generated on an Octa-ALPHA 300MHz CPU & 2.5GB RAM monster */ static uint prime_numbers[] = - {5, 11, 19, 53, 97, 193, 389, 769, 1543, 3079, 6151, 12289, 24593, 49157, 98317, 196613, 393241, 786433, 1572869, 3145739, 6291469, 12582917, 25165843, 50331653, 100663319, 201326611, 402653189, 805306457, 1610612741 }; + {5, 11, 19, 53, 107, 223, 463, 983, 1979, 3907, 7963, 16229, 32531, 65407, 130987, 262237, 524521, 1048793 }; static uint num_prime_numbers = sizeof(prime_numbers) / sizeof(uint); void zend_accel_hash_clean(zend_accel_hash *accel_hash) -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.cvs (#84549) next »