1
0
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:
Daniil Gentili 2023-11-19 19:14:51 +01:00
parent 9cefbef84d
commit 1e08575cce
3 changed files with 35 additions and 1 deletions

View File

@ -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
View 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);

View File

@ -22,3 +22,5 @@ composer update
composer build
if [ "$(git diff)" != "" ]; then echo "Please run composer build!"; exit 1; fi
php tests/jit.php