Aparajita:

"You *are* moving memory if you extract the array from an object. Not a
huge amount, but not nothing."
Thank you for confirming how that works in ObjectTools.

"I’m not sure what the motivation was for implementing those commands
yourself, but whatever."
The motivation was that the OBJ_Module does not have an OT FindInArray
functionality or an analog to OT GetArrayText. Those are very handy
features in OT so I added those to my copy of Cannon Smith's OBJ_Module.

--
Douglas von Roeder
949-336-2902


On Wed, Oct 3, 2018 at 1:26 PM Aparajita Fishman via 4D_Tech <
[email protected]> wrote:

> > BTW, I mimicked the OT GetArrayLong/Text/Date* commands and the Find in
> > array command from Object Tools in my copy of OBJ_Module. The approach
> that
> > I took was to extract the array from the object and do a find in array
> and
> > I was thinking that, perhaps, that would incur a penalty. I don't have
> the
> > metrics handy but, until it got into the thousands of hits, the operation
> > was essentially instantaneous. And the reason, as 4D has pointed out over
> > the years, is that we're dealing with references to data not the actual
> > data itself so it's not a question of moving data in memory.
>
> You *are* moving memory if you extract the array from an object. Not a
> huge amount, but not nothing. I’m not sure what the motivation was for
> implementing those commands yourself, but whatever.
>
> - Aparajita
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to