From: Graham B. <gb...@po...> - 2000-10-18 16:38:37
|
On Wed, Oct 18, 2000 at 11:17:42AM -0500, Clif Harden wrote: > The speed of the perl-ldap module has become an issue with some people. > I remmeber several discussions on this list about it. The more we bloat > the code the worse this problem is going to become. This is true. > If you can do this with a autoloading function that is compiled only > when first called, then bloat is less a problem. But it may not take much. If we can devise a message chaining scheme, then that may be all that is needed. A callback on a search can already detect if it has referrals, if it does then it dould need to create the connection and chain in the response. Right now the `naughty' way is to sub callback { my ($mesg, $entry) = @_; if (my @refs = $mesg->referrals) { $ldap = ... connect bind ... $mesg = ... do the search ... push @{$mesg->{entries}}, $mesg->entries; } } Graham. |