mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 05:58:58 +01:00
Enable function JIT
This commit is contained in:
parent
9cefbef84d
commit
1e08575cce
@ -6,7 +6,27 @@ display_startup_errors = On
|
||||
ffi.enable=true
|
||||
|
||||
[opcache]
|
||||
zend_extension=opcache
|
||||
opcache.memory_consumption=256M
|
||||
opcache.enable=1
|
||||
opcache.enable_cli=1
|
||||
;opcache.jit=1205
|
||||
opcache.jit=function
|
||||
opcache.validate_timestamps=0
|
||||
opcache.jit_buffer_size=128M
|
||||
opcache.file_update_protection=0
|
||||
opcache.max_accelerated_files=1000000
|
||||
opcache.interned_strings_buffer=64
|
||||
|
||||
opcache.jit_prof_threshold=0.000000001
|
||||
opcache.jit_max_root_traces= 10000000
|
||||
opcache.jit_max_side_traces= 10000000
|
||||
opcache.jit_max_exit_counters=10000000
|
||||
opcache.jit_hot_loop=1
|
||||
opcache.jit_hot_func=1
|
||||
opcache.jit_hot_return=1
|
||||
opcache.jit_hot_side_exit=1
|
||||
|
||||
opcache.jit_blacklist_root_trace=255
|
||||
opcache.jit_blacklist_side_trace=255
|
||||
|
||||
opcache.protect_memory=1
|
||||
|
12
tests/jit.php
Normal file
12
tests/jit.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
$status = opcache_get_status();
|
||||
var_dump($status);
|
||||
|
||||
if (!$status["jit"]["on"]) {
|
||||
echo "JIT is not enabled!".PHP_EOL;
|
||||
die(1);
|
||||
}
|
||||
|
||||
echo "OK!".PHP_EOL;
|
||||
die(0);
|
@ -22,3 +22,5 @@ composer update
|
||||
composer build
|
||||
|
||||
if [ "$(git diff)" != "" ]; then echo "Please run composer build!"; exit 1; fi
|
||||
|
||||
php tests/jit.php
|
Loading…
Reference in New Issue
Block a user