How deep the changes in the API should be?

14.8% 18
13.9% 17
13.9% 17
57.4% 70

122 Date 2009-04-20 03:09

Forums / Cotonti / Core Labs / Archive / Poll: Plugin API changes

How far can we go?

Trustmaster
#12000 2009-05-03 14:08
Yes, so far seems like there isn't very much to change so it will be more of an update. The biggest change possible is callback concept but most likely it has more drawbacks than benefits so that we'll improve includes.

Auth system is quite painful. On one hand, we want it to be more detailed and have control over every option and every group (some people even request control over every user). From security point of view, ACL alone is not enough and is combined with hierarchical model. But even as it is now, auth system is huge data and slow access. I'm afraid before we add more and more items, we need to find some smart ways to make auth system more compact and faster access.

UPD

Finally I've completed my "callbacks vs. includes" experiment and here is the summary:
  • XCache is good for your health. With XCache there is absolutely no difference between callbacks and includes, not to mention things go significantly faster.
  • Without XCache includes are 5% slower than callbacks in loops and both are almost the same in normal hooks.
  • It takes 2 minuts to convert 1 plugin part to a callback.
To conclude it, callbacks are not so great on performance as we supposed. If 5% is really important for you, then your site is popular enough to run a dedi/VPS or at least ask your hoster for XCache.

So we will focus on improving includes() and architecture changes won't be so dramatic.
May the Source be with you!
This post was edited by Trustmaster (2009-05-04 01:39, 14 years ago)