Re: [PHP4BETA] ZTS mode sooo much slower? (see attachment)
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: [PHP4BETA] ZTS mode sooo much slower? (see attachment) | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-4226@lists.php.net to get a copy of this message | ||
> the intresting thing seems to be that yy_get_previous_state gets called
> 156077 times in C++ mode but only 28 times in c-more...
>
> quantify tells me that system-calls have little/no impact in this
> test-case.
>
> i also want to mention that the test-script does *NOT* execute a lot of
> code but it defines a *LOT* of functions.
How much code exactly? This still looks like it is related to the size of
the buffer on the input stream which is one of the things that is very
likely to be different in C++ mode. If you look in the generated flex
scanner code you will see that yy_get_previous_state() is called when the
end of the buffer is hit. So we hit the end of the input buffer 156077
times in C++ mode and only 28 times in C mode? A little math based on the
size of the data you are feeding this test case might be interesting.
-Rasmus