as for architecture - thera are 2 main parts. reflection extending
classes and parser/matcher classes. I've tried to make the test
self-explanatory so if you want to know how it works in depth - start
here
http://code.google.com/p/addendum/source/browse/trunk/annotations/tests/annotation_parser_test.php?r=74
As for performance. Addendum is mainly a parsing library, I do some
caching on per request level, but further caching is not included. There
are too many options to choose from if you want to share state between
requests. Redis/memcached or even plain files just to name a few. Even
more you have to manage cache invalidation. However it is not so hard to
plug in your own caching. Maybe refactoring cache from
AnnotationsBuilder to an adapter will be a good start
http://code.google.com/p/addendum/source/browse/trunk/annotations.php?r=74#148
johno
I don't really remember but with --preserve-docs disabled there was a
problem. However here it how it works
1) It checks whether it can get docblock /** Raw mode test */ on
http://code.google.com/p/addendum/source/browse/trunk/annotations.php?r=74#340
2) It its available - we are able to get docblocks from reflection, all
good.
3) If not, raw mode parsing occurs.
johno
On 1/7/2011 2:22 PM, shabbyrobe wrote: