[TYPO3-ect] ECT library
Jan-Hendrik Heuing [DD]
jh at digitaldistrict.de
Thu Mar 9 13:24:10 CET 2006
>> In the constructor, you might want to pass a reference to a cObject,
>> instead of making a new one based on the passed class. As a Plugin I
>> already have a valid cObject which I could just pass to the ect_link
>> constructor.
>>
>
> That is true. I came from the point of the most simple programming
> API. But passing the cObject should be one of the usage possiblities
> at least, to get the best performance. The simple API could be
> improved with in internal reusable singleton.
That's what I also thought. It's a major problem with TYPO3, that it is
quite slow as soon as you start using custom pages after login for example.
We should try to gain as much speed as possible. I guess it would make sense
activating TT for those functions etc. by default (swich on/off debug makes
sense of course), so that we spot performance issues straight away.
If you pass it by reference, it keeps earlier set paramters. Is there an
easy way of resetting those values? Doing some extensionwork at the moment,
I could also think of having a default set of parameters you use within your
extension, and every call to that link-api. it's using those default values
which you can overwrite for the details.
Of course instatiating a new link-object like you do in your first example
does the job, but that's not what we want, having it by reference makes more
sense performance-wise.
JH
More information about the TYPO3-team-extension-coordination
mailing list