feat: improve of performance of PHP variables registration (#94)

* feat: enhance php register variables

* apply comments

* fix errors

* improve benchmark

* remove debug statement

* use defer

* don't use defer in a loop

Co-authored-by: Kévin Dunglas <kevin@dunglas.fr>
This commit is contained in:
Jockos
2022-11-10 14:03:50 +01:00
committed by GitHub
parent 3abda4fbb6
commit f0b2eb7445
4 changed files with 48 additions and 8 deletions

View File

@@ -2,6 +2,7 @@
#define _FRANKENPPHP_H
#include <stdint.h>
#include <Zend/zend_types.h>
int frankenphp_check_version();
int frankenphp_init(int num_threads);
@@ -26,5 +27,6 @@ uintptr_t frankenphp_clean_server_context();
int frankenphp_request_startup();
int frankenphp_execute_script(const char *file_name);
uintptr_t frankenphp_request_shutdown();
void frankenphp_register_bulk_variables(char **variables, size_t size, zval *track_vars_array);
#endif