Re: Re: Phpdocumentor memory usage
| From: | Alan Knowles | Date: | Fri, 21 Mar 2003 00:01:17 +0000 |
| Subject: | Re: Re: Phpdocumentor memory usage | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-14509@lists.php.net to get a copy of this message | ||
I did do some testing with a fork of phpcodedoc (which did C#) to store the tokens and class/function/docs etc. in mysql so it only parses files that have changed. and renders from the database rather than memory.
It obviously slows down the parsing stage on the initial build - but solves memory issues. - I was also planning to do output caching - so it only outputted files that had changed (or contained data that had changed..)
- it doesnt take too long to do if you are using objects to store data - to convert them to dataobjects.
Anyway thought it might help
Regards
Alan
Tal Peer wrote:
On Thu, 20 Mar 2003, Greg Beaver wrote:Hi Tal, This is a consideration I've thought about. Unfortunately, I don't know C as well as PHP, although I'm trying to get a handle on how the internals of PHP work, and don't have a unix platform at home to play around with it. I also have no facility to compile C code on windows (meaning no big $$$ to buy msvc or equivalent), but these problems won't stop us from accepting help from users who have a C compiler or more C experience, so that is a good idea, even if only the most memory-intensive sections are written in C, and the converters are written in PHP, which would work nicely for extensibility.I'm willing to help. I think that making the memory eating parts an extension and leaving the lighter stuff in userland is indeed thr right solution. We need to do some profiling on the source to get the whole picture. TalGreg Tal Peer wrote:-- Tal Peer tal@php.netYou could rewrite it in C (still the memory signature will be big, but not as big as now, since zvals are bigger than char ** :)