Re: Which is faster...

2023-12-14 Thread Bob Sneidar via use-livecode
That is not exactly the test he was looking for. He wants to compare retrieving an array from a script local variable vs. getting a property of an object like a stack, that contains the same array. At least I think that is the question. Now I’d like to discuss virtual properties. It takes the

Re: Which is faster...

2023-12-14 Thread Craig Newman via use-livecode
Laziness in the last post. BOTH took 10 mS to fill an ordinary variable. Craig > On Dec 14, 2023, at 5:32 PM, Craig Newman wrote: > > Typo in the last post. BOTH had 100,000 elements or lines. > > Craig > >> On Dec 14, 2023, at 5:25 PM, Craig Newman wrote: >> >> Anything to distract me

Re: Which is faster...

2023-12-14 Thread Craig Newman via use-livecode
Typo in the last post. BOTH had 100,000 elements or lines. Craig > On Dec 14, 2023, at 5:25 PM, Craig Newman wrote: > > Anything to distract me from my day job. > > An array with 100,000 elements and a variable with 100,00 lines take the same > time to place into a field. > > The only time

Re: Which is faster...

2023-12-14 Thread Paul Dupuis via use-livecode
On 12/14/2023 5:25 PM, Craig Newman via use-livecode wrote: Anything to distract me from my day job. Glad I could help! And thank you for the confirming benchmarks! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Which is faster...

2023-12-14 Thread Craig Newman via use-livecode
Anything to distract me from my day job. An array with 100,000 elements and a variable with 100,00 lines take the same time to place into a field. The only time that took a while was building them. Each took 10 milliseconds. Craig > On Dec 14, 2023, at 4:55 PM, Paul Dupuis via use-livecode >

Re: Which is faster...

2023-12-14 Thread Paul Dupuis via use-livecode
Bob, Thank you. I could script a timing test but sometime just asking the list or forums is easier. You asnwered well before I would have had the time to write a basic test script. Thanks! On 12/14/2023 4:45 PM, Bob Sneidar via use-livecode wrote: I think the confusion comes from thinking

Re: Which is faster...

2023-12-14 Thread Bob Sneidar via use-livecode
I think the confusion comes from thinking so much of a stack as an object that has substance, when really all the properties are places in memory just like a memory variable is. I asked this some years back and the answer I got was that there is no appreciable difference. One could always

Which is faster...

2023-12-14 Thread Paul Dupuis via use-livecode
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   ... end someHandler OR To retrieve an array from a

OT: htmx and hyperscript

2023-12-14 Thread Bernard Devlin via use-livecode
As I was looking into htmx (which is basically going in the opposite direction to that which Livecode is taking with WASM), I discovered the author of htmx has also implemented a kind of hypertalk in the browser (the point being to more simply hook into DOM events). It looks rather ugly IMO