phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-developers] shared memory (was documentation)


From: Sigurd Nes
Subject: [Phpgroupware-developers] shared memory (was documentation)
Date: Wed, 17 Nov 2004 22:25:17 +0100
User-agent: Mozilla Thunderbird 0.8 (Windows/20040913)

Kai Hofmann wrote:
Hi Sigurd,


Some time ago there was a discussion on how to document the code - I can't really remember if there was a conclusion. Is the Pear version of PhpDocumentor a good alternative? (or HeaderDoc? - or the wiki?).


For API (inline) documentation phpdocumentator (http://www.phpdoc.org/)
should be used.
For other kind of documentation, like install docs, how tos etc.
the phpgw wiki is the right place.

For the phpdoc's I have already written a script (that has not yet
applied), which can extract these kind of docs every night from cvs.


Is performance affected by inline documentation when using a precompiler as mmcache?


mmcache will always speed up performance, because it precompiles php scripts written in ascii to an internal presentation that is faster,
because it does not need again scanning and parsing.
Think of it like java vs. byte-code.

I have not found that inline docs (comments) or tabs vs. spaces
will influence the performance of php in a way you can feel or
even measure.
Nearly all performance problems come from bad code/architecture that does
things like
reading the same value for every http request from the database (instead of
caching it via shared memory).

The remark on shared memory is very interesting - I can't see that shmop is used at all in phpgroupware.

Will the shared memory live trough a session - or is it only sustainable within the transaction?

How about memory leaks?

On the other hand there are toold with which you can strip comments from
the code for your runtime environment. So you should not worry about
performance when using inline docs.

Greetings

   Kai/PowerStat


Thanks for the feedback - I go for phpDocumentor (v1.3.0RC3)

Sigurd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]