Re: PHP profiling results under 2.0.37 Re: Performance of Apache 2.0 Filter
| From: | Brian Pane | Date: | Sat, 08 Jun 2002 04:12:35 +0000 |
| Subject: | Re: PHP profiling results under 2.0.37 Re: Performance of Apache 2.0 Filter | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-85024@lists.php.net to get a copy of this message | ||
In case it's helpful to the PHP developers, here are
some more performance problems that I found by running
a quick system call profile of PHP-4.2.1 within
Apache-2.0.37-dev:
* php_request_shutdown() calls shutdown_memory_manager(), which
does a large number of calls to free() per request. If there's
any way to get the PHP allocator to use an APR pool, that
should help speed things up a lot. (The mallocs and frees are
going to be especially problematic within multithreaded MPMs.)
* The lex_scan() function consumed a lot of CPU time, even though
in my test case (a file with no actual embedded scripting code)
only the loop right after the "yy_match" label ever got executed.
--Brian