Re: Which is faster...

2023-12-15 Thread J. Landman Gay via use-livecode
I asked this back in the early MetaCard days and received a one word answer: "variables". It's nice to know the reason behind it, and that it hasn't changed. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On December 15, 2023 9:01:34 AM

Re: unable to unfold arrays in debugger?

2023-12-15 Thread Tom Glod via use-livecode
Hmmm, I just discovered that while this state is occurring, unfolding Project Browser groups also does not work. On Fri, Dec 15, 2023 at 12:17 PM Tom Glod wrote: > Hey Peeps, > > I'm having a strange experience where while debugging, I click on the > arrow to unfold array variables in the

unable to unfold arrays in debugger?

2023-12-15 Thread Tom Glod via use-livecode
Hey Peeps, I'm having a strange experience where while debugging, I click on the arrow to unfold array variables in the debugger, and nothing happens. Once the debugger gets into this state, I must leave the card and come back. it begins as soon as the debugger starts, but remains after the

Re: addData in Datagrids

2023-12-15 Thread Bob Sneidar via use-livecode
NVM. Apparently I have to send an array as an argument. Odd, it seems like it ought to create a new record with its own array structure. Bob S > On Dec 15, 2023, at 8:44 AM, Bob Sneidar wrote: > > Hi all. > > Datagrids have a command called addData which adds a line to the end of a >

addData in Datagrids

2023-12-15 Thread Bob Sneidar via use-livecode
Hi all. Datagrids have a command called addData which adds a line to the end of a datagrid. It returns the line number. Afterwards I ought to be able to do this” ... Set the dghilitedIndex of me to tFoundIndex — this is a valid integer Put the dgDataOfIndex [tFoundIndex] of me into tMyArrayA

Re: Which is faster...

2023-12-15 Thread Bob Sneidar via use-livecode
Ah! Another mystery solved. My app runs as a standalone considerably faster that in the IDE. Bob S On Dec 15, 2023, at 7:00 AM, Mark Waddingham via use-livecode wrote: The above results are run in the IDE which is important to mention because the message path in the IDE is typically longer

Re: Which is faster...

2023-12-15 Thread Bob Sneidar via use-livecode
Good point. I always put data I intend to work on in a local variable anyway so it becomes easier to debug. As far as 1,000,000 iterations, I cannot imagine what anyone developing in Livecode who would want to do that inline with any other process. But then I failed 6th grade math, sooo…..

Re: Which is faster...

2023-12-15 Thread Paul Dupuis via use-livecode
And that is THE DEFINITIVE answer! Wow! Thank you. On 12/15/2023 10:00 AM, Mark Waddingham via use-livecode wrote: On 2023-12-14 21:22, Paul Dupuis via use-livecode wrote: Which is faster or more efficient (from an engine performance perspective)? To retrieve an array from a property? As

Re: Which is faster...

2023-12-15 Thread Craig Newman via use-livecode
This is why LCMark gets the big bucks. Craig > On Dec 15, 2023, at 10:00 AM, Mark Waddingham via use-livecode > wrote: > > On 2023-12-14 21:22, Paul Dupuis via use-livecode wrote: >> Which is faster or more efficient (from an engine performance perspective)? >> To retrieve an array from a

Re: Which is faster...

2023-12-15 Thread Mark Waddingham via use-livecode
On 2023-12-14 21:22, Paul Dupuis via use-livecode wrote: Which is faster or more efficient (from an engine performance perspective)? To retrieve an array from a property? As in: command someHandler -- in an objects script   get the cMyArray from me -- cMyArray is some multi-dimensional array  

Re: Which is faster...

2023-12-15 Thread Craig Newman via use-livecode
OK, I see what you mean. I set a custom property of the card to the array I used earlier. It takes almost no time at all to put the contents of that property into a variable. It is not relevant whether it is a script local variable or not. Bottom line, I do not think it makes any difference