On Fri, Sep 30, 2016 at 5:01 PM, Kirk Brooks <[email protected]> wrote:

> $0:=OBJ_get_Text($ptr->;"agents."+$1+".name")
>
> That's pretty cool. Especially since the pointer can reference a local var.
>
I can't make a case for using a pointer with an Object - an object is just
a reference to the data. I get "double clutching" but not double
dereferencing. :-)

The other issue that came to mind is some code that allowed me to retrieve
data from SAP using web services, converting the XML to JSON, and then
using OB Get and OB get property names to assign the data to the dynamic
variables on the form. All of the assignments are done using one For loop.
Blindingly fast and very easy to maintain because everything is based on
the object name/dynamic variable name.



>
> Lastly, working with c-obj just feels fast. I don't know if they are
> optimized internally (I suspect they are) but I've got some pretty
> intensive c-obj manipulations going on involving a lot of lines of code and
> when I time them it's in the realm of 1 ms, interpreted. Unfortunately I
> don't have any direct comparisons to the same tasks using process vars.
>

Just Leavens did some testing on C_Object vs getting data out of arrays.
The takeaway for me was that they're both incredibly fast but C_Object is
faster than an array and C_Object gets progressively quicker as the data
set grows.

C_Object is missing data manipulation routines that OT provides - find in
array, update a particular element in an array, etc. I've created methods
to perform those functions with C_Object and have come up with elapsed
times that are the same that you're hitting.


--
Douglas von Roeder
949-336-2902
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to