Daniil Gentili

Results 256 comments of Daniil Gentili

I need the actual logfile too, not just the profile

From the logs, it seems simply that the scripts making the request suddenly disconnect, there may be also issues with some requests not getting a reply from telegram in time;...

As mentioned above, on idle, the MadelineProto worker must use ~0% CPU. What you are seeing is abnormal behavior, a bug, but until you provide a valid reproducer, I cannot...

The main thing that can have some impact is preloading in combination with JIT. On smaller codebases preloading has a negative performance impact, on an medimum-size codebases it has a...

I am currently working on a PHP AOT compiler (mainly for Psalm), which should solve the issue altogether.

If anything, there should be a flag to control preloading, however preloading fixes a negative performance impact caused by repeated JIT compilation in multithreaded mode. A possible optimization path can...

It might actually make more sense to just disable preloading (without touching JIT) when running in singlethreaded mode, that would speed up execution without slowing down multithreaded mode.

What platform, CPU and PHP version are you running this on? This info can be useful as your results don't quite match mine, and it might be useful to disable...

What results do you get when scanning Psalm itself?

My results match as well (average of 5 runs each on 8.5.0, arch linux, 12th Gen Intel(R) Core(TM) i5-12450H): ``` array(4) { ["jit + preload"]=> float(12.847333333333333) ["jit only"]=> float(11.669166666666667) ["no...