[AccessD] With / End With or not?

Arthur Fuller fuller.artful at gmail.com
Mon Sep 13 15:20:16 CDT 2021


I find that. in the most charitable way, a provocation to write a test
case. I plan to create a form with a few dozen nonsense controls and then
to code it both ways ans timethe results. Either way, I guess we will be
dealing with milliseconds, but now my interest has been tweaked . I shall
confine my tests to the immediate case -- no lookups or other distractions
I shall have to flush the buffer so every call is fresh. But suddenly I am
interested n this subject.
I will report back with results.

On Mon, Sep 13, 2021 at 3:20 PM Stuart McLachlan <stuart at lexacorp.com.pg>
wrote:

> I strongly suspect that it's purely  a source code thing and that the
> compiler will compile both
> to the same set of instructions using pointers to the appropriate objects.
>
> I find it hard to visualise any other way of it being done.
>
>
>
> On 13 Sep 2021 at 13:59, Arthur Fuller wrote:
>
> > Somewhere I read or heard or just intuited that given a block of code
> > that frequently references Me, it's faster and better towrap te the
> > block in a With Me / End With than to explicitly refer to Me. Is this
> > true? Or is it just to make the code ceaner? Has anyone bothered to
> > benchmark the difference? I' could easily build a test case, but if
> > you've already done it, then I would be interested in your results.
> >
> > --
> > Arthur
> > --
> > AccessD mailing list
> > AccessD at databaseadvisors.com
> > https://databaseadvisors.com/mailman/listinfo/accessd
> > Website: http://www.databaseadvisors.com
> >
>
>
> --
> AccessD mailing list
> AccessD at databaseadvisors.com
> https://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>


-- 
Arthur


More information about the AccessD mailing list