On Mon, 2008-08-04 at 07:56 +0200, Mats Kindahl wrote:
> Stewart Smith wrote:
> > plugin_foo_init()
> > {
> > register_auth_module(&foo);
> > register_func_module(&f);
> > }
> >
>
> I second this: maybe because this is how the registry for MySQL is
> designed to work. :)It also avoids a malloc in the server. foreach plugin, the void* random struct that's passed in to be filled out is malloced by the server. gah. no reason why we can't just register a struct that's just defined in the plugin .c/cpp file. saving malloc = win although more so for mysqld rather than drizzled, in drizzle it just makes startup time quicker - in mysql, it could avoid process-wide lock in malloc during runtime (as plugins are loadable) -- Stewart Smith ([EMAIL PROTECTED]) http://www.flamingspork.com/
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Mailing list: https://launchpad.net/~drizzle-discuss Post to : [email protected] Unsubscribe : https://launchpad.net/~drizzle-discuss More help : https://help.launchpad.net/ListHelp

