You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a small benchmark that iterates tests/001.phpt 10000 times without printing and ran it through perf. The results indicate that 10% of CPU time is spent allocating AST nodes.
emalloc() is called for each new node. We can probably reduce this bottleneck by either allocating nodes in chunks or simply using a stack-allocated array. This might make it possible to bring performance closer to the native PHP test for small/medium data sets.
The text was updated successfully, but these errors were encountered:
I created a small benchmark that iterates
tests/001.phpt
10000 times without printing and ran it throughperf
. The results indicate that 10% of CPU time is spent allocating AST nodes.emalloc()
is called for each new node. We can probably reduce this bottleneck by either allocating nodes in chunks or simply using a stack-allocated array. This might make it possible to bring performance closer to the native PHP test for small/medium data sets.The text was updated successfully, but these errors were encountered: