Subject | Re: [IBO] Slow FieldByName |
---|---|
Author | Jason Wharton |
Post date | 2002-08-21T13:47:58Z |
I'll probably leave it the way it is.
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com
-- We may not have it all together --
-- But together we have it all --
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com
-- We may not have it all together --
-- But together we have it all --
----- Original Message -----
From: "Helton de Oliveira" <helton_o@...>
To: <IBObjects@yahoogroups.com>
Sent: Wednesday, August 21, 2002 5:21 AM
Subject: Re: [IBO] Slow FieldByName
> Hi Jason,
>
> Yes, i can reference the fields by local variables, but is much easier to
> use FieldByName instead of this method.
>
> As the TIB components are supposed the be faster than the TIBO ones do you
> intend to improve the FieldByName function in a TIB_Cursor like in the
TIBO
> components ?
>
> Thanks,
>
> Helton
>
> >Jason wrote:
> >
>
> > In the TIBO... components for TDataset a person made it so that
> FieldByName
> > started the scan if fields with the next field from the last one found
> > instead of the first field. This made it more quick for people doing
> > FieldByName that corresponded with the numerical order of the fields.
> >
> > What I recommend people always do if possible is to do FieldByName
outside
> > of the loop and store aside the direct object reference in a local
> variable
> > and make reference to it directly instead.
> >
> > Jason Wharton
> > CPS - Mesa AZ
> > http://www.ibobjects.com