Limit to number of registered plugin functions? (SOLVED)

Started by Traveler, Fri 15/12/2006 06:13:34

Previous topic - Next topic

Traveler

I'm working on a plugin that is likely to have a lot of functions registered during run-time. Is there any limit to the number of registered functions (or in the script header?)

Is there a negative impact for having lots and lots of registered functions (like excessive memory use or performance degradation due to lookups, etc.)?

Pumaman

There is a total overall limit on the number of functions that can be exported by all plugins added together, which in theory it would be possible for a single plugin to exceed. I think it's in the region of a couple of hundred though, so it shouldn't be an issue.

Traveler

CJ, thanks for your reply. Strictly theoretically speaking :), how hard would it be to increase this limit to a thousand or two, if there was a request like that? (Again, theoretically speaking.) I'm working on a plugin that will be the backbone of my game and it will have a lot of functions and I also plan on using other plugins. At this moment, I don't have anything near the current limit, so it's not a problem, but I'd like to be prepared if and when I get close to that limit, so that I can ask for more in time. Would something like that be hard to do or relatively easy?

Pumaman

I wouldn't imagine it would be too difficult to do, if the need arose.

SMF spam blocked by CleanTalk