-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve performance of wrap_generic_callable
nr_php_wrap_generic_callable is used to create transient wraprecs for callables which don't require to be named. This assumption makes it possible to stay DRY and reuse nr_php_zval_to_function in lieu of complex pattern matching for the type of callable. On top of that it improves performance as it now uses nr_php_wrap_callable always instead of sometimes using nr_php_wrap_user_function
- Loading branch information
Showing
1 changed file
with
40 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters