On Wed, Apr 25, 2007 at 10:40:41PM +0100, Tim Bunce wrote: > On Wed, Apr 25, 2007 at 01:18:08PM +0200, H.Merijn Brand wrote: > > > --- > > > Don't use DBIS or dbis when you can use DBIc_STATE (imp_xxh). > > > DBIS is much slower, especially on perls built with threads enabled. > > > It's a macro that expands to a function call, whereas > > > DBIc_STATE (imp_xxh) is just accessing a field in the handle structure. > > > > This does not apply to?: > > > > av = DBIS->get_fbav (imp_sth); > > num_fields = AvFILL (av) + 1; > > Yes. Ideally the code should have no DBIS (or dbis) in it at all. The only > exception would be any code that doesn't have a handle/imp_xxh handy.
... and can't be modified to have a handle/imp_xxh passed in. Tim.
