Skip to content

Import compiler optimized functions for big performance gain #20

Open
beberlei wants to merge 1 commit intojwadhams:masterfrom
beberlei:ImportCompilerOptimizedFunctions
Open

Import compiler optimized functions for big performance gain #20
beberlei wants to merge 1 commit intojwadhams:masterfrom
beberlei:ImportCompilerOptimizedFunctions

Conversation

@beberlei
Copy link

In a case where we used an excessive amount of large formulas in a script, importing these functions made a 100ms+ difference, because the engine could skip calling the internal PHP functions and directly work on opcodes. Being called in the 100.000s, this matters.

Here you can see 200ms being saved in Tideways on that project with the use function imports alone:

Bildschirmfoto 2025-10-21 um 11 45 25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant